0

Images in a server and I have to download an image from the server. Image Url Stored in ArrayList using Asynctask.

how to download an image from ArrayList URL? I using Download manager and custom download but its give not an actual response.

Rahul Chokshi
  • 670
  • 4
  • 18
rahul
  • 87
  • 2
  • 8

1 Answers1

0

you can use Picasso library.

for (String url : urlList) {
Picasso.with(this)
.load(url)
.into(new Target() {
    @Override
    public void onBitmapLoaded (final Bitmap bitmap, Picasso.LoadedFrom from){
        /* Save the bitmap or do something with it here */

        //Set it in the ImageView
        theView.setImageBitmap(bitmap); 
    }
});
}