0

I am displaying image's from web using Image downloading logic from url, I want to image download at first time only, next time onwards don't download image from web, because First time downloaded image store in cache memory so i display image from cache memory, In case does not exits that image in cache memory, will download otherwise don't need download that image from web , How is it possible any body guide me ho to so this.?

Thanks in advance.

RajaReddy PolamReddy
  • 22,428
  • 19
  • 115
  • 166

3 Answers3

1

Go with the solution Lazy loading list with images because it does the same trick that you require. i.e. download image once, store it in cache and display as and when it requires.

Community
  • 1
  • 1
Paresh Mayani
  • 127,700
  • 71
  • 241
  • 295
1

go thorugh this example given at GitHub: https://github.com/thest1/LazyList

BenMorel
  • 34,448
  • 50
  • 182
  • 322
Khan
  • 7,585
  • 3
  • 27
  • 44
0

store your images in sdcard.check wheather your images exist in sdcard or not if yes simply display those images otherwise download from web and store in sdcard,display from sdcard

Venkata Krishna
  • 1,543
  • 1
  • 11
  • 19
  • i don't know.But it is not good way to store in cache memory because size cache memory is very low compare to sdcard it is better if you store in sdcard. – Venkata Krishna Mar 19 '12 at 06:07
  • actually i am getting image url's from web instead of images i have to store image url's in SQlite after compare i have to download imges.. – RajaReddy PolamReddy Mar 19 '12 at 06:14
  • store your urls in database.after storing url's in database read that urls from database one by one and using that urls download image from web and store in sdcard. – Venkata Krishna Mar 19 '12 at 06:23