I have a block of images that I want to load on my screen. All the images are files that I downloaded and stored on SD-CARD.
So far I found two ways to do it, first is l
One option would be to use create image cache using the WeakReference so that the image would be removed from the memory when system encounter low memory situation. This way you can keep images in memory and only need load from sdcard when they are not in memory. So your current activity would always keep the hard reference to the bitmap's required and the image cache would keep the weak reference to the bitmap's.
Following is some more information about weak reference:
JavaDoc weakReference
StackOverflow post discussing using weak reference for cache