How can I minimize the use of memory with Android

hello, I’m unity3d android software developer.

I has a problem:

I built and run an apk (only an empty sence)on HTC one X(Android 4.0.2). Almost 33M memory had been allocated.

I have already used .net 2.0 subset and use micro miscrolib.

Is there any way to help me reduce the memory?

1 Answer

1

After creating a build, review the editor log file. It will show the size of assets in the project.

Your project may include DLLs that you’re not aware of. Or it could be including assets from any Resources folder and loading them for some reason.

If possible, don't use System or System.Xml, as these will include some heavy DLLs that take up a lot of space. The link below has tips on reducing DLLs. See the bottom section, "Reducing included dlls in the Players". http://docs.unity3d.com/Documentation/Manual/ReducingFilesize.html The link below talks about iOS, but a lot still applies to Android: http://docs.unity3d.com/Documentation/Manual/iphone-playerSizeOptimization.html Also, this link for optimizing for mobile: http://docs.unity3d.com/Documentation/Manual/iphone-PracticalGuide.html