I post a JsonRequest to a server. The server is slow and Volley tends to make multiple calls to the slow server because it didn\'t get a response from the first request (sin
To stop Volley from retrying a request, simply set the retry policy of the request to a DefaultRetryPolicy with maxNumRetries being 0:
myRequest.setRetryPolicy(new DefaultRetryPolicy(
DefaultRetryPolicy.DEFAULT_TIMEOUT_MS,
0, // maxNumRetries = 0 means no retry
DefaultRetryPolicy.DEFAULT_BACKOFF_MULT));