hello,
I have two tables. Arabic and urdu. I want to display select query to listview Line by line (arabic/Urdu).
I Have no issue to display one query to listview but I am failed to multi select from 2 table and populate Listview.
I have two tables. Arabic and urdu. I want to display select query to listview Line by line (arabic/Urdu).
I Have no issue to display one query to listview but I am failed to multi select from 2 table and populate Listview.
Code:
(Private feedback for you)
I have two tables. Arabic and urdu. I want to list Line by line (arabic/Urdu) for display Arabic i have no issue
Cursor cursor = myDbHelper.Surahbyid(Value);
// The desired columns to be bound
String[] columns = new String[]{
myDbHelper.KEY_AYA,
myDbHelper.KEY_TEXT,
};
int[] to = new int[]{
R.id.id,
R.id.aya,
};
// create the adapter using the cursor pointing to the desired data
//as well as the layout information
dataAdapter = new SimpleCursorAdapter(
this, R.layout.surah,
cursor,
columns,
to,
0);
listView.setAdapter(dataAdapter);