I was working on a project. It\'s just showing a list of tasks and Adding new tasks to it. I have 3 CLASSES. One for adding, One for view and One to hold all information (or
extends BaseAdapter class ,Override notifyDataSetChanged(); method.
Please see below snip code:
@Override
public void notifyDataSetChanged() {
super.notifyDataSetChanged();
list.addAll();//--insert object to list
}
call notifyDataSetChanged(); method in Activity onResume() method ,like this:
@Override
protected void onResume() {
super.onResume();
((BaseAdapter)getListAdapter()).notifyDataSetChanged();
}