Any solutions to this error?

view story

http://stackoverflow.com – 01-25 23:51:14.507: WARN/System.err(616): android.database.CursorIndexOutOfBoundsException: Index -1 requested, with a size of 2 I have an android application that would use an SQLite database. But when it gets to the select statement it force closes. I have a class file that I use for doing this : package com.thesis.menubook; import android.content.ContentValues; import android.content.Context; import android.database.Cursor; import android.database.SQLException; import android.database.sqlite.SQLiteDatabase; import android.database.sqlite.SQLiteOpenHelper; import android.util.Log; import (HowTos)