Adam,
I see in your code below that you're closing the database immediately
after querying it (getting the cursor).
This is wrong - a cursor should have an open database to work with.
Also, updates like you're trying to implement are automatic if you use
ContentProvider with a CursorAdapter
Hello,
I have a listview and my implementation of the CursorAdapter. As a
part of my list item I have a delete button. When the user presses the
button I show a dialog asking for confirmation and if the user presses
ok I delete the item from the database. The problem is with refreshing
the listvie
2 matches
Mail list logo