This application has MainActivity and it uses about 20 bitmaps. It works pretty fine but when I start an intent to another activity and then go back to the MainActivity, it crashes because of memory problem. It gives this error:
java.lang.OutOfMemoryError: Failed to allocate a 2052108 byte allocation with 1629176 free bytes and 1590KB until OOM
I have also used these in the manifest
android:hardwareAccelerated="false"
android:largeHeap="true"
What would be the best method to be able to switch between Activities without using more memory? Thanks