0

What is the best practice for loading images from the Web into a ListView?

Do I have to load them first into SQLite database or should I load them directly into a ListView?

And also after clicking an item in the ListView I have to show the same image in another activity. Is it the right way to pass this image to another activity or it is better to load it from Web / SQLite once again?

Siddharth Lele
  • 27,623
  • 15
  • 98
  • 151
Stas
  • 1,355
  • 6
  • 22
  • 40

2 Answers2

1

Look here Lazy loading of images

Loading them directly into the listview will make scrolling in it slow, as it will reload them everytime they get visible.

Community
  • 1
  • 1
Jonathan
  • 188
  • 6
0

do that Google recommended http://developer.android.com/training/displaying-bitmaps/index.html

Longerian
  • 723
  • 5
  • 13