Android Studio Handle Request Of Volley Library
How to handle request/response volley library, When i use method POST. I want to set Toast when post complete. Toast.makeText(getApplicationContext(), 'Successful', Toast.LENGTH_SH
Solution 1:
I guess its server response issue not code issue, you will never get called onResponse(String response), in failure case its should get called onErrorResponse() .
If your not getting callback for onErrorResponse() , you can set the timeout as below.
request .setRetryPolicy(newDefaultRetryPolicy(
MY_SOCKET_TIMEOUT_MS,
DefaultRetryPolicy.DEFAULT_MAX_RETRIES,
DefaultRetryPolicy.DEFAULT_BACKOFF_MULT));
Post a Comment for "Android Studio Handle Request Of Volley Library"