Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVA

set timeout volley android

// 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 by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #set #timeout #volley #android
ADD COMMENT
Topic
Name
4+9 =