Re: [android-developers] Problem with refreshing listview from a dialog window

2011-01-05 Thread Kostya Vasilyev
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

[android-developers] Problem with refreshing listview from a dialog window

2010-12-14 Thread Serdel
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