Android-Volley: set retry policy to ImageLoader

I am using Volley as a networking library on Android. ImageLoader

I ran into limited functionality issues when using it. It seems to be a very useful class with caching and other stuff, so I want to keep using it. However, it does not provide any access to the objects Request

it creates. As a result, I cannot do some things that I can do in other cases (for example, set a tag in a request to dequeue it from the queue).

My current problem is how can I set a retry policy for requests made with ImageLoader

?

+3


source to share


1 answer


I think there is no way to set a retry policy for the ImageLoader. But you have access to all requests via volley singleton (if you are using it). Try changing your retry policy in the addToRequestQueue method. If you need a different retry specification for images and other requests - you can simply create two request queues (bad practice).



0


source







All Articles