IllegalArgumentException: column '_id' does not exist when call to SimpleCursorAdaptor

前端 未结 4 1544
傲寒
傲寒 2020-12-16 20:28

I have a table named \"master\" with columns id, name, surname, gender, and designation

When I fire

4条回答
  •  攒了一身酷
    2020-12-16 21:24

    I believe the SimpleCursorAdapter assumes that there is a column '_id'. You need to create it so it would probably be easier for you to use "_id" instead of your own "id". Read the 2nd post on this page

提交回复
热议问题