Skip to content

Instantly share code, notes, and snippets.

View mstfldmr's full-sized avatar

Mustafa Aldemir mstfldmr

View GitHub Profile
@mstfldmr
mstfldmr / gist:f6594b2337e3633673e5
Created March 19, 2015 08:51
Example of Volley GET and POST requests with parameters and headers
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());
}
},