Android png images big in memory

Posted by taivo on Stack Overflow See other posts from Stack Overflow or by taivo
Published on 2012-07-10T09:07:28Z Indexed on 2012/07/10 9:15 UTC
Read the original article Hit count: 133

Filed under:
|
|

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 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.

© Stack Overflow or respective owner

Related posts about android

Related posts about image