Android, how to lazy load images from url and persistently cache them in gallery widget?

MarcoS picture MarcoS · May 25, 2011 · Viewed 21.4k times · Source

I'm implementing an Android gallery widget. I'm asking how to lazy (i.e. in a separate thread) load images from the web and persistently cache them? So that on the next run I have the cached images locally available...

Answer

Daniel Frear picture Daniel Frear · May 25, 2011

This is how:

Lazy load of images in ListView

Check the demo in the second answer, helped me massively!