My application uses 75 MB of memory the first time a user opens it.
I used the Android Profiler Tool from Android Studio to learn how to use my Android app. When the main screen opens, the application will begin to use 75 MB of memory, even if the main activity does not create an object that requires too much memory. No bitmaps or large arrays, etc.
40MB is in the "Code" section, and 19MB is from "Native", which we do not upload to this activity. However, we load when the user opens another activity. I am trying to reduce memory usage, and I was wondering how I can reduce from the "Code" and "Native" sections.
Screenshot with Android Profiler

source
share