Logcat error Index -1 requested, with size 24

I got this error when starting a project that uses the SqliteAssetHelper library:

FATAL EXCEPTION: main android.database.CursorIndexOutOfBoundsException: Index -1 requested, with a size of 24 at android.database.AbstractCursor.checkPosition(AbstractCursor.java:424) at android.database.AbstractWindowedCursor.checkPosition(AbstractWindowedCursor.java:136) at android.database.AbstractWindowedCursor.getString(AbstractWindowedCursor.java:50) 

What does this error mean?

+8
android database android-logcat
source share
1 answer

Your Cursor not in a valid string. Use moveToFirst() or one of the other move...() methods to place Cursor on the line you want to read from.

+4
source share

All Articles