无论使用cursor.moveToFirst(),它都会抛出以下错误,而这只发生在
xiaomi手机
Caused by: java.lang.IllegalStateException: Process 29459 exceeded cursor quota 308, will kill it
他们崩溃了。 我尝试了关闭光标,限制光标返回的行数等选项。 没有任何帮助。
答案 0 :(得分:0)
确保您已按此关闭光标
Cursor cursor = //yourstatement;
try {
if (cursor.moveToFirst()){
}
}
} finally {
cursor.close();
}