My application uses many large images. Instead of requesting the use of native memory, I want to clear the bitmaps on back pressed. Android Manifest already states the required use of largeHeap so that's not an issue. The problem is the sheer amount of bitmaps. Can this be done using the back button?
I am getting the java out of memory error. The bitmap combined size exceeds the memory allocated even when largeHeap is enabled.
Update: Each activity has it's own bitmap. When the application reaches around 10 activities, 10 bitmaps, that's when the out of memory error is show.