Answer the question
In order to leave comments, you need to log in
How to get response status using Volley library?
Hello!
In my application I use the Volley library.
I make a request to receive a string response:
StringRequest stringRequest = new StringRequest(Request.Method.GET, url,
new Response.Listener<String>() {
@Override
public void onResponse(String response) {
// do something
}
},
new Response.ErrorListener() {
@Override
public void onErrorResponse(VolleyError error) {
// do something
}
});
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question