1

I want to load images in a grid view using lazy loading. I have tried to implement this by using AsyncTask bet it is throwing concurrent future task error.Am loading images from server by using URL so please help me.

Ravinder
  • 143
  • 1
  • 9

4 Answers4

5

Use this library https://github.com/nostra13/Android-Universal-Image-Loader There is loading in every style... list, grid etc

Aamir Shah
  • 4,473
  • 8
  • 21
  • 28
  • thanks for this but i am loading images from server by using url,how to implement that? – Ravinder Nov 29 '12 at 13:09
  • its is there... just check it out – Aamir Shah Nov 29 '12 at 13:10
  • @AamirShah UniversalImageLoader is nice. But one issue what i got is. it is not storing images in catch. So everytime it is loading images from server. if it is storing images and display it from the catch then its great. – Shreyash Mahajan Dec 20 '13 at 06:25
4

Simple example showing lazy loading gridview for android.

https://github.com/desertjim/LazyLoadingGridView

Nirav Ranpara
  • 13,753
  • 3
  • 39
  • 54
0

You can use smart image view that download the image form the HTTP url in the background. It is open source and its source code is available at this link..

Praful Bhatnagar
  • 7,425
  • 2
  • 36
  • 44
0

Here is the best link you can find around for working with images : http://android-developers.blogspot.fr/2010/07/multithreading-for-performance.html

The code is dedicated to ListViews but would work with GridView as well. It's quite complicated but performance is just stunning.

Snicolas
  • 37,840
  • 15
  • 114
  • 173