ケース R.id.buttonTest: {
String[] projection = {DbTest.NAME};
String selection = "_id = ?";
String[] selectionArgs = { String.valueOf(1) };
Cursor c = sqdb.query(DbTest.TABLE_NAME,projection,selection,selectionArgs ,null,null,null);
String name = c.getString(c.getColumnIndex(DbTest.NAME));
textView1.setText(name);
}
break;
ログキャット:
原因: android.database.CursorIndexOutOfBoundsException: サイズ 1 でインデックス -1 が要求されました
どうしたの?理解できません。