Is there a way for selecting the rowid from table using SQLiteDatabase instance
Cursor websiteCursor= mDatabaseManipulator.query(mTableName, null, COLUMN_WEBSITENAME+"='"+websiteName+"'", null, null, null, null);
Above cursor doesn't get the rowid. The doc says passing null in second argument will return all columns. But rowid is not returned.
I m getting rowid using rawQuery.
Cursor websiteCursor = mDatabaseManipulator.rawQuery("Select rowid _id, * from " + mTableName + " where " + COLUMN_WEBSITENAME + " = '" + websiteName +"'", null);
rowidis just an alias for theinteger primary keycolumn if there's one.