1
PLZ的幫助我,我面對這個問題android.database.CursorIndexOutOfBoundsException:指數-1要求,大小5
我的代碼是
`final Cursor curr = dbhelper.getdatatomanagedata();
startManagingCursor(curr);
Integer colid = curr.getInt(0);
String colans = curr.getString(1);
objansMap = new HashMap<Integer, String>();
if (curr!=null)
{
curr.moveToFirst();
while(!curr.isAfterLast())
{
objansMap.put(colid, colans);
curr.moveToNext();
}}
把你的SQL查詢,如果要設置光標記錄的代碼,以便我們能找到什麼是你的代碼錯誤? –