Reputation: 259
I have created an app, which is taking more RAM usage while loading it self around 28MB+.
This app contains around 6+ .so files (required to support different android versions.) but these .so files are loading later I mean not immediately.
Lot more String variables too. This application requires platform signatures for some requirements. But for initial setup, those APIs will not get called (I mean platform related API)
I have just tried like just loading Initial activity it self, this itself taking 28MB.
What will happen when an app is loaded/launched?
I want to know like, while loading the app itself, all the resources, .so files, other activities, services irrespective of top activity will be loaded and placed in memory?
Is that causing more RAM usage?
I need more information about how android will allocate RAM while loading application...
which is causing more RAM usage?
your help will be appreciated...
Thanks
Upvotes: 2
Views: 883
Reputation: 84
Now in addition of using Eclipse MAT to detect memory leaks, here is a library for your app to detect leaks easily. https://github.com/square/leakcanary
most of memory leaks in android are Context or Activity leaks.
Upvotes: 0