Various technical articles, IT-related tutorials, software information, and development journals
Tuesday, December 11, 2018
Volley's retry mechanism works better than manual retry
I recently discovered Volley's setRetryPolicy feature to automatically retry requests that time out. I had previously been restarting the web request in the error callback up to a certain number of times, which worked but was messy. When I replaced that logic with Volley's mechanism, I found that my app became more likely to successfully get the data. In my testing, I've almost never needed to use the UI's retry feature anymore.
Labels:
android
Subscribe to:
Post Comments (Atom)
No comments:
Post a Comment