How can I get the next column value not the new row?
Im using listview to display information of the selected user from the spinner.
What shows up: Firstname, Firstname, Firstname
Should be instead: Firstname, Lastname, Email, etc.
Im thinking about adding i++ but seems not to be working
public void myMethod(String user) {
ArrayList<String> theList = new ArrayList<>();
Cursor data = db.getListViewAccountrequestinfo();
if (data.getCount() == 0) {
} else {
while (data.moveToNext()) {
theList.add( data.getString(0) );
ListAdapter listAdapter = new ArrayAdapter<>(this, android.R.layout.simple_list_item_1, theList);
lvinfo.setAdapter(listAdapter);
}
}
}