There is ListActivity in my code. One of the context menu options for the list item is "delete", which opens a dialog box confirming the action. I intended to implement this functionality by first deleting the item data in the database and then deleting it from the ArrayAdapter . This is removing it from the ArrayAdapter , which I get a UnsupportedOperationException ...
public void onClick(DialogInterface dialog, int id) { asynchronousDeleteEntry(CONTEXT_SELECTED_ID); dialog.dismiss();
Any help appreciated. Thanks!
source share