the drawable can't be recycled
atship opened this issue · 2 comments
Hi,
When i close the GalleryViewPagerSampleActivity or TouchImageViewSampleActivity, the native heap is not recycled, therefore, if i start these activities and close and start again and so on, the heap would increase forever, and lag the phone, is there any way to solve this issue please?
Thank you.
Hey @ijsonlin, thanks for your feedback. Which version of Android are you using?
Hi @diegocarloslima
I am now use android version 4.2.2
The meminfo is below:
the native heap size is totally 180M, when I press back button to close the activity, the heap size is not recycled. Even so, the heap would be reused by the system.
And yesterday I am using android version 2.3.7, that phone has too small memory(free mem is 80M), therefore the app lag the system because the system want to cache to the sdcard and that phone has no one.