0
To sending the data by URL to my webservice if I put the path by the example web browser in Chrome:
meuwebservice/inserirusu/á
already by android he has this exit
meuwebservice/inserirusu/%C3%A1
My way
private void inserir(final String edicao) { edicao = "á"
showProgressDialog();
StringRequest strReq = new StringRequest(Request.Method.GET,
Const.URL_EDITAR_TRABALHADOR+URLEncoder.encode(edicao, "UTF-8"), new Response.Listener<String>() {
@Override
public void onResponse(String response) {
Log.d(TAG, response.toString());
if(response.equal("Alterado"){
hideProgressDialog();
finish();
}
}
}, new Response.ErrorListener() {
@Override
public void onErrorResponse(VolleyError error) {
VolleyLog.d(TAG, "Error: " + error.getMessage());
hideProgressDialog();
}
});
// Adding request to request queue
AppController.getInstance().addToRequestQueue(strReq, tag_string_req);
}
The problem is in the
StringRequest strReq = new StringRequest(Request.Method.GET,
Const.URL_EDITAR_TRABALHADOR+URLEncoder.encode(edicao, "UTF-8"), new Response.Listener<String>()
I have this android output meuwebservice/inserirusu/%C3%A1
And the problem where is it? Specify your question better
– Paulo Roberto Rosa
This is no place to ask about sport :D (http://developer.android.com/training/volley/index.html)
– Maniero