android.database.CursorIndexOutOfBoundsException: Index 0 requested, with a size of 0

后端 未结 7 2229
甜味超标
甜味超标 2020-11-27 14:14

I am using custom adapter extending cursor adapter for displaying data in listview, to display particular phone number i have passed the id to a method in database class but

7条回答
  •  鱼传尺愫
    2020-11-27 15:17

    Check the return value from moveToFirst(), before you try to read anything from the cursor. It looks as if no results are being returned.

提交回复
热议问题