虽然数据(名称,电子邮件,通行证)以某种方式丢失。
我无法理解发生了什么。
请帮助
代码 -
StringRequest stringRequest = new StringRequest(Request.Method.POST, AppConfig.URL_REGISTER,
new Response.Listener<String>() {
@Override
public void onResponse(String response) {
Log.d("D - Message - Ashik - ", response);
Toast.makeText(Register.this,response,Toast.LENGTH_LONG).show();
}
},
new Response.ErrorListener() {
@Override
public void onErrorResponse(VolleyError error) {
Log.d("D - Message - Ashik - ", error.toString());
Toast.makeText(Register.this,error.toString(),Toast.LENGTH_LONG).show();
}
}){
@Override
protected Map<String,String> getParams(){
Map<String,String> params = new HashMap<String, String>();
params.put("name", Sname);
params.put("email",Semail);
params.put("password", Spass);
return params;
}
};
//Toast.makeText(Register.this, Sname + Semail + Spass, Toast.LENGTH_SHORT).show();
RequestQueue requestQueue = Volley.newRequestQueue(Register.this);
requestQueue.add(stringRequest);