I want to save the images fetched from server for once and from next time i want to check first whether images are stored or not in device, if not then again it should fetch from server and store in user's device again, and if yes then application will use images directly rather than fetching from server again and again. It will be useful for enhancing the speed of application. Basically my application is fetching multiple images from server so i want to save those images on user's android device and from next time application should fetch from device. I think you got my question.
Asked
Active
Viewed 643 times
1 Answers
2
The simple way:
You can use Picasso. It is a simple lib which provides image downloading and caching. In my opinion it might not be the fastest, but it is pretty simple and intuitive. It does its job well and none who I asked complained about it.
Other libs:
To make it short. There are lots of other libs. An awesome comparision of the most Populat ones can be found here and here
The do it yourself way:
You can also write you own caching logic with a LRUCache. Which is also pretty simple.
Take a look at:
https://developer.android.com/topic/performance/graphics/cache-bitmap.html
The LRUCache is just a Memory Cache so you might also want to use a DiskLRUCache

Vadim Kotov
- 8,084
- 8
- 48
- 62

daemmie
- 6,361
- 3
- 29
- 45
-
Please suggest me for android eclipse IDE not for android studio.@oberflansch. – Vishal Jain Jul 27 '15 at 05:34
-
You can use the jar: https://search.maven.org/remote_content?g=com.squareup.picasso&a=picasso&v=LATEST in eclipse – daemmie Jul 27 '15 at 05:36
-
thank you so much for your kind support, now it's working properly.@oberflansch. – Vishal Jain Jul 27 '15 at 07:30