I have been struggling to find out what the correct management of Fragments within a FragmentActivity
with a ViewPager
is. Before I go into details
I believe that this question, about retrieving the current fragment from a ViewPager, will help you. As already pointed out, fragments are managed by the Fragment(State)PagerAdapter and NOT Activity's or Fragment's lifecycle.
getItem
method. This method is called only once per fragment, even if the activity gets recreated.instantiateItem
method. Most probably, this is the place, where you need to get hold of your fragments and call their refresh methods.