List of usage examples for org.json JSONArray getClass
@HotSpotIntrinsicCandidate public final native Class<?> getClass();
From source file:net.redwarp.android.app.githubcount.ProjectDetailFragment.java
@Override public void onStart() { super.onStart(); String user = getArguments().getString("user"); String repository = getArguments().getString("repository"); JsonArrayRequest request = new JsonArrayRequest( "https://api.github.com/repos/" + user + "/" + repository + "/releases", new Response.Listener<JSONArray>() { @Override/*w w w . jav a2s . c o m*/ public void onResponse(JSONArray jsonArray) { mTitleLabel.setText("Class = " + jsonArray.getClass()); parseReleases(jsonArray); } }, new Response.ErrorListener() { @Override public void onErrorResponse(VolleyError volleyError) { Toast.makeText(getActivity(), "Request error", Toast.LENGTH_SHORT).show(); mTitleLabel.setText("Request failed"); } }); request.setRetryPolicy(new DefaultRetryPolicy(5000, DefaultRetryPolicy.DEFAULT_MAX_RETRIES, DefaultRetryPolicy.DEFAULT_BACKOFF_MULT)); request.setTag(this); MyApplication.getRequestQueue().add(request); }