Example #1
0
 @Override
 public void onErrorResponse(VolleyError error) {
   parameters.result = error.toString();
   Log.d(TAG, "onErrorResponse :" + error.toString());
   parameters.responseCode = error.networkResponse.statusCode;
   if (listener != null) listener.faild(parameters);
 }
Example #2
0
 @Override
 public void onResponse(String response) {
   parameters.result = response;
   parameters.responseCode = 200;
   if (listener != null) listener.success(parameters);
 }