Manually retry Volley request on android

I know what to use RetryPolicy, but it looks like it is retrying automatically.

what i want is to trigger a retry when the user clicks the redo button. I tried to save the request and reuse it, but found that Volley actually kills the listeners after the request is complete.

this makes me no way to interact with the user after retrying. However, I can restore the same query again, but it does not look right and complicates the situation.

Is there a way to retry manually? or keep listeners? Thanks!

0
source share
1 answer

, , , , - , . . - , , . , . , . , .

, , . / , , http uri. , , , . jus, , , .

0

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


All Articles