Answer the question
In order to leave comments, you need to log in
How to use Picasso to download pictures and cache them?
There is a custom view, you need to submit a bitmap to it, how to download it and cache it?
Trying like this
Picasso.with(this)
.load(myURL)
.into(new Target() {
@Override
public void onBitmapLoaded(final Bitmap bitmap, Picasso.LoadedFrom from) {
customView.setImage(bitmap);
}
});
Answer the question
In order to leave comments, you need to log in
if it is downloaded and without brakes, just check if there is such a picture on the disk;
if there is, load from the disk
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question