FragmentActivity.onResume()
javadoc:
Dispatch onResume() to fragments. Note that for better inter-operation with older versions of the platform, at the point of this call the fragments attached to the activity are not resumed. This means that in some cases the previous state may still be saved, not allowing fragment transactions that modify the state. To correctly interact with fragments in their proper state, you should instead override onResumeFragments().
FragmentActivity.onResumeFragments()
javadoc:
This is the fragment-orientated version of onResume() that you can override to perform operations in the Activity at the same point where its fragments are resumed. Be sure to always call through to the super-class.
Does the above mean that the platform guarantees that:
- fragments are never going to be resumed (their
onResume()
not called) while executingFragmentActivity.onResume()
and - fragments are always going to be resumed (their
onResume()
called) while executingFragmentActivity.onResumeFragments()
?
If not, how can a developer correctly utilize and be vigilant regarding the above?