I have a ListView in my class,I have a cursor regarding a number X which is incrementing each time,i am using this cursor in a ListView but at the time when i am using this x only one row is showing in the ListView.I want to show all the lists regarding the tncrementing value.My code is as follows:
'String fstring = "SELECT * FROM train_table WHERE _id=" + x + ";";
final Cursor c3 = SQ.rawQuery(fstring, null);
final ListView lv = (ListView) findViewById(R.id.tiimetable_list);
CursorAdapterTimeTable myc = new CursorAdapterTimeTable(this, c3);
lv.setAdapter(myc);`enter code here'
Aucun commentaire:
Enregistrer un commentaire