score:-1

Accepted answer

When the user clicks the Delete button I wish to delete the match from the database and then refresh the ListView

To delete item from ListView create a method MatchListViewAdapter which remove item from same instance of data-source which is used in getCount method like:

public void removeItem(int pos){

  this.dataContainer.remove(pos);
  this.notifyDataSetChanged();
}

Call removeItem item in createDialog method before MatchDao.delete(matchToDelete)


Related Query

More Query from same tag