how to refresh the listView using the Cursor Adapter

前端 未结 6 2244
名媛妹妹
名媛妹妹 2021-01-05 07:56

I have created a ListView using CursorAdapter . Now I am Trying to update the ListView and Refresh the value to the ListView .

6条回答
  •  栀梦
    栀梦 (楼主)
    2021-01-05 08:03

    ".java.lang.IllegalArgumentException: column '_id' does not exist ...althouh I have _id field in to my db table" means that the value of "cursor" in your code is wrong. Check the code of getting the value of "cursor" please. A cursor must have a column named '_id'。 This is my suggestion

提交回复
热议问题