Question : set timeout volley android
Answered by : mohamed-boumlyk
// MY_SOCKET_TIMEOUT_MS is your custom timeout in milllisecond
myRequest.setRetryPolicy(new DefaultRetryPolicy( MY_SOCKET_TIMEOUT_MS, DefaultRetryPolicy.DEFAULT_MAX_RETRIES, DefaultRetryPolicy.DEFAULT_BACKOFF_MULT));
Source : https://stackoverflow.com/questions/17094718/change-volley-timeout-duration | Last Update : Thu, 26 May 22