I have a custom list view. I want to update this list view when user enters new data (I used a dialog to insert data). I successfully did it by calling
adapter.notifyDataSetChanged();
Every thing is working fine. The only problem is that i want my data (in list view ) updated immediately as the dialog dismisses
{Listview(activity) and Dialog(simple class extending DialogFragment) are in two seperate class files} .
Currently the data updates only when user interacts with listview activity after entering the data. Is there any way to call onResume of ListView activity (I put update function in onResume) immediately as the dialog dismisses.