- Free Courses
Count used to count the number of rows in a table. The method of count programmed into DBadapter, and called on via MainAcitivity.
public int countAllRecordsNotes()
Cursor mCount = db.rawQuery("SELECT COUNT(*) FROM " + databaseTableNotes + "", null);
int count= mCount.getInt(0);
No comments yet. You can be the first one to comment. Just write your comment in the form and click on the submit button.