Android uses one of the Chinese parameter passing methods. android uses Chinese parameters.
Recently I was working on an app. I used volley to pass the parameter. It was not possible to pass the Chinese parameter in one place (it seems to be the get method). I tried the post method again. I succeeded. record it, useful in the future!
RequestQueue requestQueue = Volley.newRequestQueue(getApplicationContext());
StringRequest stringrequest=new StringRequest(Request.Method.POST, "http:/***", new Response.Listener<String>() {
@Override
public void onResponse(String s) {
Toast.makeText(CommitApprasialActivity.this,"",Toast.LENGTH_SHORT).show();
RepairInfor rep=new RepairInfor();
rep.setRep_appraisal(edit_appraisal.getText().toString());
RepairListActivity.instance.finish();
Rep_ItemActivity.instance.finish();
startActivity(new Intent(CommitApprasialActivity.this,RepairListActivity.class));
finish();
}
}, new Response.ErrorListener() {
@Override
public void onErrorResponse(VolleyError volleyError) {
}
}){
protected Map<String,String> getParams(){
Map<String,String> map=new HashMap<String, String>();
map.put("",);
map.put("",);
return map;
}
};
requestQueue.add(stringrequest);