I´m using volley to send a JSONObject to the server of my application, I was looking for how to catch a JSONArray as request, but I can put "Response.Listener.JSONArray", it doesn´t work.
Right now I have this:
JsonObjectRequest jsonArrayRequest = new JsonObjectRequest(Request.Method.POST,
url, obj,
new Response.Listener <JSONObject > () {@Override
public void onResponse(JSONObject response) {
//only for test.
Log.d("SendRequestJsonPost", response.toString());
}
}, new Response.ErrorListener() {
}
Ok, when I send a JSONObject to the server, I wait to receive a JSONArray, but when I change from JSONObject to JSONArray I get errors on my code.
Someone knows how to do this?