I have a fragment(FragmentA) where I am making an Async call, and navigating to another fragment(FragmentB). FragmentB has a listview, which needs to be refreshed when the onPostExecute method is called, in the FragmentA. How to achieve this?
I tried to make the adapter static in FragmentB, and notify it from FragmentA's onPostExecute. But this doesn't help.
protected void onPostExecute(String isEmpty) {
pDialog.dismiss();
FragmentB.adapter.notifyDateSetChanged();
}
Please suggest some way to do this!