ByakuGallery icon indicating copy to clipboard operation
ByakuGallery copied to clipboard

the drawable can't be recycled

Open atship opened this issue 10 years ago • 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.

atship avatar Jan 26 '15 04:01 atship

Hey @ijsonlin, thanks for your feedback. Which version of Android are you using?

diegocarloslima avatar Jan 26 '15 13:01 diegocarloslima

Hi @diegocarloslima I am now use android version 4.2.2 The meminfo is below:

lag2

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.

atship avatar Jan 27 '15 07:01 atship