FragmentManager saves out it's list of fragments


#1

Hi,
You said that when an activity is destroyed, it’s FragmentManager saves out its list of fragments. How is it possible? Is it automatically saved or I have to write code in onSaveInstanceState?


#2

Yes, the list of fragments is automatically saved by the FragmentManager. You don’t have to do anything. For more in-depth explanation, see Ch 14 (Retained Fragments).