SQLite Database does't update listview item and inserts new instead

前端 未结 1 968
你的背包
你的背包 2021-01-29 12:03

When item of listview is clicked, it gets opened in another activity which has edittext. After editing an item, when I save it, item does not get updat

相关标签:
1条回答
  • I think there's problem with your adapter. There are 2 possible issues.

    1. Data of adapter are not updated. You're saying opposite, new value is added to ListView. Are you really sure?
    2. You haven't called your adapter's method notifyDataSetChanged() after you've changed values.
    0 讨论(0)
提交回复
热议问题