My program is structured as follows from a navigation standpoint:
Fragment A -> Fragment B -> Fragment C (back button pressed) -> Fragment A
I have an async task that normally fires in onActivityCreated in Fragment A:
fetch = new FetchVenues(this, user); fetch.execute();
After navigating to other fragments, I handle a back button press as follows:
getSupportFragmentManager().popBackStack(FIRST_FRAGMENT, 0); getSupportFragmentManager().beginTransaction().commit();
This returns the program to fragment A. However upon returning to this fragment, onActivityCreated is called but my async task does not fire again.
I'm not sure why this is the case. I would like the async task to fire again.