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

21,569

Solution 1

This is how:

Lazy load of images in ListView

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

Solution 2

Try this code.the universal imageloader.

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

Share:
21,569
MarcoS
Author by

MarcoS

I'm a sailor. I love roaming in the Mediterranean sea on any wood piece you can stick a mast and a sail on. In my spare time I do software engineering in Turin, as a full-stack developer. I start my coding ages ago with x86 assembly; then I go with C, bash, Perl, Java; Android; currently I do MEAN stack: MongoDB, Express.js, Angular.js and of course Node.js. Obviously on the shoulders of the GNU/Linux O.S..

Updated on January 29, 2020

Comments

  • MarcoS
    MarcoS over 4 years

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

  • sandip
    sandip over 11 years
    This should be in comment!
  • MarcoS
    MarcoS over 11 years
    And, the link is a 404 (probably it's github.com/nostra13/Android-Universal-Image-Loader ...).