2

I would like to download just one image from an URL then save it (to my folder) . this image is user's avatar. I've found the following links:

Best method to download image from url in Android

Android Download Image From URL and show in Imageview

how can I do ?

what is the best solution? (Except Download manager)

Community
  • 1
  • 1
S.M_Emamian
  • 17,005
  • 37
  • 135
  • 254

2 Answers2

3

The best way is use picasso library

Picasso.with(context).load("http://i.imgur.com/DvpvklR.png").into(imageView);

Its dead simple just put this one line where you want to load the image. Picasso supports image caching also so you doint have to worry about downloading and caching the image.

Shivaraj Patil
  • 8,186
  • 4
  • 29
  • 56
2

There are so many frameworks are available for this. Like

  • DownloadManager
  • Picasso
  • AndroidQuery

But I am using AndroidQuery since 3 years and have great experience with this framework.

It cache the images it self and manage duplication of image download. And Really faster and light weight.

You can download the jar from Here

Biraj Zalavadia
  • 28,348
  • 10
  • 61
  • 77