I have a database class which stores a database and access to all of the records via the following:
public Cursor getAllRecords() {
return db.query(DATABASE_TABLE, new String[] {KEY_ROWID, KEY_TEXT}, null, null, null, null, null);
}
How can I update the TableLayout to show the field KEY_TEXT entries in it?
And furthermore, is it possible (keeping in mind that I do have both methods for deletion and insertion) to implement a way to tap a entry in the table and have it deleted (and have entries added) viewing it happen in real time, i.e.: When I tap something to delete it it should disappear from the table view too.