If Picasso retries downloading images forever when there is no Internet access

So, I watched the android http application that uses both picasso and okhttp, however, when it comes to offline mode, picasso keeps trying to download the image forever, I see a very aggressive retry policy, as it keeps getting me errors on the reverse listener call:

picasso.listener(new Picasso.Listener() { @Override public void onImageLoadFailed(Picasso picasso, Uri uri, Exception exception) { Debug.info(this, "On image error " + exception.getMessage()); } }) 

Someone had some kind of hint, I looked at the fact that picasso is tracking an image with a download error, joins the broadcast when there is a network that should try to repeat the request with these images, but this is not what I see here, I see that Picasso is desperately trying to get this image, even when there is no connection.

http://corner.squareup.com/2014/05/picasso-23.html

+5
source share
1 answer

Accordingly, write if picasso could not get any image picasso will wait until the Internet is available. When he gets an internet connection, he will try to execute unsuccessful processes. This process will continue for unsuccessful tasks.

0
source

Source: https://habr.com/ru/post/1212414/


All Articles