I am fetching a lot of thumbnails in my application from a remote server and lazy loading these in a list View. The image fetches run in a background AsynTask and when completed the fetched images are stored in a HashMap using SoftReferences. This works just fine but when the images in the cache gets GC'd the fetches have to be rerun.
I could have stored them on the SDcard that way there would be no re-fetching. But I did not take this approach because of the clutter it would create on the SD card. Maybe there are alternatives to these sorta like temporary folders that can be cleared when Activity/app finishes/exits?
What is the "ideal place" to cache images? Any advice,example projects or pointers appreciated.
Thanks!