Downloading image as Bitmap using Picasso
suggest changeIf you want to Download image as Bitmap
using Picasso
following code will help you:
Picasso.with(mContext)
.load(ImageUrl)
.into(new Target() {
@Override
public void onBitmapLoaded(Bitmap bitmap, Picasso.LoadedFrom from) {
// Todo: Do something with your bitmap here
}
@Override
public void onBitmapFailed(Drawable errorDrawable) {
}
@Override
public void onPrepareLoad(Drawable placeHolderDrawable) {
}
});
Found a mistake? Have a question or improvement idea?
Let me know.
Table Of Contents