'Problem after android Volley update 1.2.0
StringRequest request = new StringRequest(Request.Method.POST, URL_LOGIN, new Response.Listener<String>() {
@Override
public void onResponse(String response) {
progressDialog.dismiss();
if(response.equalsIgnoreCase("logged in successfully")){
Intent intent1 = new Intent(LoginActivity.this, Home.class);
startActivity(intent1);
Toast.makeText(LoginActivity.this,response,Toast.LENGTH_SHORT).show();
}
else{
Toast.makeText(LoginActivity.this,response, Toast.LENGTH_SHORT).show();
}
}
}, new Response.ErrorListener() {
@Override
public void onErrorResponse(VolleyError error) {
progressDialog.dismiss ();
Log.e("Volly Error", error.toString());
}
}
){
@Override
protected Map<String,String> getParams() throws AuthFailureError {
Map<String,String> params=new HashMap<String,String>();
params.put("email",str_email);
params.put("password",str_password);
return params;
}
};
RequestQueue requestQueue = Volley.newRequestQueue(LoginActivity.this);
requestQueue.add(request);
}
Below is the logcat
com.android.volley.TimeoutError
After the android volley 1.2.0 update . Login and Sign-up in my app automatically stopped working. In logcat it shows timeout error Can somebody please help.
Sources
This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.
Source: Stack Overflow
| Solution | Source |
|---|
