I am getting cursor index out of bounds \"index 0 requested: with size 0\" error when I search my database for something. The item I am searching for in my database does not
While you retrive value you have to use cursor.moveToNext;
if (cursor.moveToFirst()){
do{
String data = cursor.getString(cursor.getColumnIndex("data"));
// do what ever you want here
}while(cursor.moveToNext());
}