I extract a lot of thumbnails in my application from a remote server and lazily load them as a list.
Image capture starts in the AsynTask background and upon completion, the extracted images are saved in the HashMap using SoftReferences.
This works fine, but when the images in the cache receive GCd, you need to reload.
I could save them on the SD card so that there would be no re-fetching.
But I did not use this approach because of the mess that it would create on the SD card.
Are there any alternatives to these sortings, for example temporary folders, which can be cleared when the action / application ends / exits?
What is the βideal placeβ for image caching? Any tips, sample projects or pointers would be appreciated.
Samuh source
share