2
example have a return this way from Webservice
"Success! Saved user. Id: 257"
all right I’m picking up the phrase as : Success! Saved user. Id: 257
need only take the number or is to take the 257 the phrase only serves to confirm if you made the recording
My Code is like this:
private void Cadastro(String login, String senha) {
showProgressDialog();
StringRequest strReq = new StringRequest(Request.Method.GET,
Const.URL_CADASTRO_USUARIO+"/"+login+"/"+senha, new Response.Listener<String>() {
@Override
public void onResponse(String response) {
Log.d(TAG, response.toString());
// msgResponse.setText(response.toString());
hideProgressDialog();
}
}, 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);
}