这是我的方法高分
public void highscore(){
Cursor gethighscorealter = highscoreDB.rawQuery("SELECT MIN(TIME) FROM HIGHSCORE3;"
, null);
gethighscorealter.moveToFirst();
if(gethighscorealter!=null){
timer= gethighscorealter.getInt(gethighscorealter.getColumnIndex("TIME"));
move = gethighscorealter.getInt(gethighscorealter.getColumnIndex("MOVE"));
grid = gethighscorealter.getInt(gethighscorealter.getColumnIndex("GRID"));
highscoreview();
}
}
这是我的原木猫
06-02 13:30:38.599: E/AndroidRuntime(32416): FATAL EXCEPTION: main
06-02 13:30:38.599: E/AndroidRuntime(32416): java.lang.IllegalStateException: Couldn't read row 0, col -1 from CursorWindow. Make sure the Cursor is initialized correctly before accessing data from it.
06-02 13:30:38.599: E/AndroidRuntime(32416): at android.database.CursorWindow.nativeGetLong(Native Method)
06-02 13:30:38.599: E/AndroidRuntime(32416): at android.database.CursorWindow.getLong(CursorWindow.java:507)
06-02 13:30:38.599: E/AndroidRuntime(32416): at android.database.CursorWindow.getInt(CursorWindow.java:574)
06-02 13:30:38.599: E/AndroidRuntime(32416): at android.database.AbstractWindowedCursor.getInt(AbstractWindowedCursor.java:69)
06-02 13:30:38.599: E/AndroidRuntime(32416): at skripsi.slidame.PuzzleActivity.highscore(PuzzleActivity.java:253)
06-02 13:30:38.599: E/AndroidRuntime(32416): at skripsi.slidame.PuzzleActivity.onOptionsItemSelected(PuzzleActivity.java:131)
他们说第 0 行 col - 1??我听不懂