ListView update on insert, edit, delete notifyDataSetChanged() not working
<p>I have a ListView bound to a SimpleCursorAdapter, and I want it to refresh when I modify the database (by inserting, updating or deleting rows). <em>cursor.notifyDataSetChanged()</em> has no effect (it's called on the UI thread) and <em>ListView.removeViewAt(int)</em> throws an <em>UnsupportedOperationException</em>.
What am I supposed to do on Android to get such a basic behavior?</p>

<p>Note that the database is correctly affected and the modification is shown when I restart the activity. But restarting the activity is not an option here, and changing the ListView adapter is the last resource here, since it's a hack and can't guarantee a smooth transition </p>

<p><strong>DISCLAIMER</strong>
Quite basic question, asked millions of times and answered zero.
Please, <strong>do not answer</strong> if you have never done this in your code, don't ask for mine, and don't bother with <em>try this</em> or <em>try that</em>. <strong>Only answer if you know how it's done</strong></p>
