everytime I quit my Android app and restart, it consumes 2 Mb extra, for example if I restart my app 3 times, it consumes 6 Mb more. I use the back button to quit and I clean all references in OnDestroy().
I went through all the posts in stack overflow pertaining to memory management and memory leak in Android, I also did a MAT but there is no way my activities are leaking memory(holding reference),
I also tried the same thing with other applications but they maintain a constant memory usage of +/- 0.75 Mb.
I am confused about Android memory management.
I got this Fixed! The problem was, in my Grid View Adapter I was setting the typeface for the grid icon texts everytime, I should have set the typeface in the On Create generically.
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.