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 = Volley.newRequestQueue(context); | |
//for POST requests, only the following line should be changed to | |
StringRequest sr = new StringRequest(Request.Method.GET, "http://headers.jsontest.com/", | |
new Response.Listener<String>() { | |
@Override | |
public void onResponse(String response) { | |
Log.e("HttpClient", "success! response: " + response.toString()); | |
} | |
}, |