Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

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

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

like image 648
MarcoS Avatar asked May 25 '11 14:05

MarcoS


2 Answers

This is how:

Lazy load of images in ListView

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

like image 149
Daniel Frear Avatar answered Nov 05 '22 17:11

Daniel Frear


Try this code.the universal imageloader.

https://github.com/nostra13/Android-Universal-Image-Loader

like image 32
jithu Avatar answered Nov 05 '22 18:11

jithu