Skip to content

Instantly share code, notes, and snippets.

View koushikpaul1999's full-sized avatar

Koushik Paul koushikpaul1999

  • Personal
View GitHub Profile
@koushikpaul1999
koushikpaul1999 / gist:35b6ff6cf853db0328a1a3c800f1174b
Created December 6, 2020 07:30 — 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());
}
},