Skip to content

Instantly share code, notes, and snippets.

/volley.java
Created Sep 26, 2017

Embed
What would you like to do?
JsonObjectRequest request = new JsonObjectRequest(Request.Method.GET, url, null,
new Response.Listener<JSONObject>() {
@Override
public void onResponse(JSONObject response) {
// handle JSON response
}
},
new Response.ErrorListener() {
@Override
public void onErrorResponse(VolleyError error) {
// handle error
}
}
);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.