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.
Asked
Active
Viewed 8,915 times
4 Answers
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
-
-
@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.

Nirav Ranpara
- 13,753
- 3
- 39
- 54
-
I have also tried this but its not working for me, as I am loading images by using URL – Ravinder Nov 29 '12 at 13:02
-
-
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
-
-
SmartImageView is a drop-in replacement for Android’s standard ImageView which additionally allows images to be loaded from URLs or the user’s contact address book. Images are cached to memory and to disk for super fast loading. – Praful Bhatnagar Nov 29 '12 at 13:10
-
I think its is much difficult. Its good if you have demo . and you their link . – Nirav Ranpara Nov 29 '12 at 13:13
-
Their project page has sample code to integrate this view. following is the link to the project page: http://loopj.com/android-smart-image-view/ and it is easy since at can be used as the standard `ImageView` – Praful Bhatnagar Nov 29 '12 at 13:19
-
1ok. already this link is in ans. but I want demo . no problem . Thanks – Nirav Ranpara Nov 29 '12 at 13:20
-
Demo: http://blog.teamtreehouse.com/the-missing-widget-in-the-android-sdk-smartimageview – EdgarT Feb 22 '14 at 23:15
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