You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
i am using json volley with simple disk cache class. but issue is that i am getting jsonArray as response, so how to put it as inputStream argument?
my code is here,
req = new JsonArrayRequest("URL",
new Response.Listener() { @OverRide
public void onResponse(JSONArray data) {
for (int i = 0; i < data.length(); i++) {
try {
JSONObject jObj = data.getJSONObject(i);
Categories cat = new Categories();
cat.setId(jObj.getString("id"));
} catch (JSONException e) {
// TODO Auto-generated catch block
e.printStackTrace();
}
}
}
}, new Response.ErrorListener() {
@Override
public void onErrorResponse(VolleyError error) {
VolleyLog.d("Error", "Error: " + error.getMessage());
hideProgressDialog();
}
});
please help me...
The text was updated successfully, but these errors were encountered:
i am using json volley with simple disk cache class. but issue is that i am getting jsonArray as response, so how to put it as inputStream argument?
my code is here,
req = new JsonArrayRequest("URL",
new Response.Listener() {
@OverRide
public void onResponse(JSONArray data) {
please help me...
The text was updated successfully, but these errors were encountered: