I am trying to fetch data from mysql DB in android listview. But somehow I am not been able to display the data in the listView
I was trying this with the help of a
Change this
String name = jsonChildNode.optString("employee_name"); String number = jsonChildNode.optString("employee_no");
to
String name = jsonChildNode.getString("emp_name"); String number = jsonChildNode.getString("emp_no");