Skip to content

Instantly share code, notes, and snippets.

Created September 26, 2017 10:54
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save anonymous/00a34ccdf1ab937fff72f900b59c84eb to your computer and use it in GitHub Desktop.
Save anonymous/00a34ccdf1ab937fff72f900b59c84eb to your computer and use it in GitHub Desktop.
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