I have some images that I download from different web sites when the app starts, by doing this:
Picasso.with(context).load(image_url).fetch();
Now, suppose the user closes the app and turns offline. When the app starts again, Picasso display the images in this way:
Picasso.with(ctx).load(image_url).placeholder(R.drawable.ph).into(imageView);
The problem is that some images are loaded from the disk cache (yellow triangle in debug mode), and for the others Picasso shows the placeholder.
Why? I'm expecting that every image is loaded from the disk cache.
See Question&Answers more detail:
os 与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…