i must do i request with Volley Framework. This is a POST request with JSONObject.
I must pass one string and one JSONArray..but how i can?
I start with this
try passing JSONObject instead of hashmap
JSONObject params = new JSONObject();
params.put("url", "www.secret.com");
JSONArray urlDove = new JSONArray();
urlDove.put("www.google.com");
urlDove.put("www.yahoo.com");
params.put("urlDove", urlDove);
JsonObjectRequest mRequest = new JsonObjectRequest(
mUrl, params,
createMyReqSuccessListener(),
createMyReqErrorListener()) {
@Override
public Map getHeaders() throws AuthFailureError {
return app.getInstance().createBasicAuthHeader();
}
};
for reference in parsing json https://stackoverflow.com/a/17810270/4810752