#onSaveinstaceState

Activity的onSaveinstaceState()保存fragment状态

Activity的onCreat方法:@OverrideprotectedvoidonCreate(BundlesavedInstanceState){FragmentManagersupportFragmentManager=getSupportFragmentManager();if(savedInstanceSt...