Json available with Volley
@Override public void onResponse(JSONObject response) { // display response Log.d("Response", response.toString()); try { JSONArray table_forms = response.getJSONArray("table_forms"); for (int i = 0; i < table_forms.length(); i++) { JSONObject student = table_forms.getJSONObject(i); System.out.println(student); String id = student.getString("id"); String login = student.getString("login"); String email = student.getString("email"); String password = student.getString("password"); txt.append(id + " " + login + " " + email +" "+password+" \n"); } txt.append("===\n"); How to implement such a simple adapter, transfer the student to simple_list_item_1 ?
I do not understand where to put this piece and how to properly convey, so I write with an error, only for understanding.
ArrayAdapter<String> adapter = new ArrayAdapter<String>(this, android.R.layout.simple_list_item_1, student); lvMain.setAdapter(adapter);`