Reputation: 3043
I have an issue, i have created an android appliaction, and i have to load more than 50 image at once. I have been loading images as async task but when i got from server 50 picture ids it is too much. I need some best practice how to do that. I am limited to 1 picture whit 1 call. and the picture comes as multipart object so i need to call async tasks.
thanks
Upvotes: 0
Views: 570
Reputation: 1853
Consider using Picasso
Picasso is A powerful image downloading and caching library for Android(straight copy from their site)
Picasso will handle the downloading and caching of images, so you don't have to worry about any of that
Also it does the work on other thread, so your UI thread isn't blocked!
Here's an example code of loading image to a ImageView from their site:
Picasso.with(context)
.load(url)
.resize(50, 50)
.centerCrop()
.into(imageView)
Upvotes: 2