I have everything working in my DBHelper class except for my fetch statement. I get a red line under query. What am I doing wrong here?
public Cursor fetchAllItems() {
return mDb.query(DATABASE_TABLE, new String[] { KEY_ITEM, KEY_PRIORITY,
KEY_ROWID }, null, null);
}
Seems like you are missing to provide some extra
null. See below:For more info, read the docs.