example I have a return of that WebService mode
"Success! User saved Id: 257"
All right, I'm getting the phrase like: Success! User saved. Id: 257
I just need to get the number or get the 257 the sentence is only used to confirm if you have done the recording
My code looks 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);
}