Skip to content

Instantly share code, notes, and snippets.

View alitamoor65's full-sized avatar
💭
I may be slow to respond.

Ali Tamoor alitamoor65

💭
I may be slow to respond.
  • Soft Logix
  • Multan, Pakistan
View GitHub Profile
@alitamoor65
alitamoor65 / gist:5b46b4af3974523b3a2c99904e48c814
Created December 28, 2018 07:09 — forked from mstfldmr/gist:f6594b2337e3633673e5
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());
}
},