I have a custom adapter which extends ArrayAdapter, it includes checkboxes for each item in the list.

Within the getview itself I have the onCheckedChanged listener that deletes a item from the database if checked. However the listview does not update, and I cant call the notifyDataSetChanged() as I am not in the main class. Any ideas how?