I have a ListView supported by a CursorAdapter custom adapter.
The cursor that I give him is based on the Notes list in the database (each note is a DB string).
Everything works fine until I delete the note from the database. I am not sure how to update the cursor / adapter / list correctly to display new data.
I read conflicting messages when using adapter.notifyDataSetChanged() vs cursor.requery() to update the user interface, but none of them seem to work in this case. The only way I was able to update it was to create a new cursor from a new request and call adapter.changeCursor(newCursor) .
Can anyone demonstrate a proper way to update the backup data, and then the user interface (using psuedocode if possible).
android android-listview listview
CodeFusionMobile
source share