CursorIndexOutOfBoundsException problem:Index 4 requested, with a size of 4

后端 未结 3 1415
走了就别回头了
走了就别回头了 2021-01-24 05:02

I want to display for each maker an AlertDialog that has some description, for that, i\'m using this code:

protected boolean onTap(int index) {
            db =          


        
3条回答
  •  失恋的感觉
    2021-01-24 05:39

    The error is, certainly in code String description = cur.getString(cur.getColumnIndexOrThrow("description")); because you have not got such column . You have only COL_DESCRI column, which probably does not match "description"

提交回复
热议问题