Im trying to get data from my DB.
This is my code:
String[] columns = new String[] {COLUMN_FACEBOOK_ALBUM_COVER, COLUMN_FACEBOOK_ALBUM_IS_ACTIVE};
You should fix this to solve the following error message
Couldn't read row 0, col -1 from CursorWindow. Make sure the Cursor is initialized correctly before accessing data from it.
It works in my code.
Try to position cursor by moveToFirst
before reading data from it.
Check for null-> if (c != null && c.moveToFirst()) {}
Check for count-> (c != null && c.getCount() >0 && c.moveToFirst()){}