Skip to content Skip to sidebar Skip to footer

Cursor Index Out Of Bounds

I am encountering cursor index out of bounds exception. My code is as follows. SQLiteDatabase db = this.getWritableDatabase(); String completedInList = 'SELECT COUNT(*) FROM ' + TA

Solution 1:

Doc says rawQuery returns

A Cursor object, which is positioned before the first entry

So you seem to need call moveToFirst before using cursor.getString

Post a Comment for "Cursor Index Out Of Bounds"