Vote count: 0 I Know there are already questions liked this but there are nothing that work in this program. i get this code from one youtube videos tutorial public void ListDrawer() { final List studentList = new ArrayList(); try { JSONObject jsonResponse = new JSONObject(jsonResult); JSONArray jsonMainNode = jsonResponse.optJSONArray("student_info"); for (int i = 0; i < jsonMainNode.length(); i++) { JSONObject jsonChildNode = jsonMainNode.getJSONObject(i); String name = jsonChildNode.optString("student_name"); String number = jsonChildNode.optString("student_id"); String outPut = name + "-" + number; studentList.add(createStudent("Students", outPut)); } } catch (JSONException e) { Toast.ma...
ادامه مطلب