What I'm trying to do is get some data from a HttpURLConnection
instead of using JsonObjectRequest()
from the Volley library.
Below is the code that I use to grab a JSON object from my server.
JsonObjectRequest jsonReq = new JsonObjectRequest(Method.GET,"myURL", null, new Response.Listener<JSONObject>();
I tried changing the null
to a JSONObject
after myURL
was changed to null
. But that did not work out.
See Question&Answers more detail:
os 与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…