I had previously added some logic to my app to try a Volley request a few times if it failed due to a timeout. Today I learned that Volley can handle this automatically. Request objects have a
setRetryPolicy method that takes a
RetryPolicy, probably a
DefaultRetryPolicy specifically.
No comments:
Post a Comment