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

来源:学生作业帮助网 编辑:作业帮 时间:2024/05/30 06:40:10

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个,肯定不对,