android - How to clear the bitmaps when back is pressed (Java OOM error)? -


my application uses many large images. instead of requesting use of native memory, want clear bitmaps on pressed. android manifest states required use of largeheap that's not issue. problem sheer amount of bitmaps. can done using button?

i getting java out of memory error. bitmap combined size exceeds memory allocated when largeheap enabled.

update: each activity has it's own bitmap. when application reaches around 10 activities, 10 bitmaps, that's when out of memory error show.

try bitmap.recycle() images used before start new activity .


Comments

Popular posts from this blog

javascript - AngularJS custom datepicker directive -

javascript - jQuery date picker - Disable dates after the selection from the first date picker -