Update listview after item update

I couldn’t find a way to refresh the listview after returning from updating an item in a separate activity. I couldn’t get any variation of


to work, despite it being suggested in many places.

What worked for me was to useTo position listview at same position

startActivityForResult(intent, 0);

and then in onActivityResult update the cursor again and recreate the listview.

This entry was posted in Android. Bookmark the permalink.

Leave a Reply

Your email address will not be published. Required fields are marked *