This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| RequestQueue queue = VolleyClient.getInstance(getActivity()).getRequestQueue(); //Obtain the instance | |
| StringRequest volleyRequest = new StringRequest(Request.Method.POST,url, //Change the url parameter | |
| new Response.Listener<String>() { | |
| @Override | |
| public void onResponse(String response) { | |
| try { | |
| JSONArray jsonResponse = new JSONArray(response); // Convert string to JSONArray | |
| //TODO: parse the JSON or whatever |
NewerOlder