android.database.CursorIndexOutOfBoundsException: Index -1 requested, with a size of 1这是什么情况

来源:学生作业帮助网 编辑:六六作业网 时间:2024/05/16 08:06:51
android.database.CursorIndexOutOfBoundsException:Index-1requested,withasizeof1这是什么情况android.database

android.database.CursorIndexOutOfBoundsException: Index -1 requested, with a size of 1这是什么情况
android.database.CursorIndexOutOfBoundsException: Index -1 requested, with a size of 1
这是什么情况

android.database.CursorIndexOutOfBoundsException: Index -1 requested, with a size of 1这是什么情况
数据库查询得到的cursor里面只有1个结果,你却查找第-1个,肯定不对,