I have an application in android that has an imageflipper
. Problem is, after about 8 images loaded to memory, I get an out of memory error.
Well, I tried to do dynamic image loading, so that if the user flips 2 images, I'll load next 2 to memory and delete 2 first ones. It kind of works, but it is ugly and I have trouble when user flips images back(imageflipper.showprevious()
).
I can't really shift all images and place new images to the beginning.
My question is:
Is there a better way to do this kind of stuff? Resizing images didn't really help.