###### IllegalStateException: Can not perform this action after onSaveInstanceState

1. E/AndroidRuntime(12747): Caused by: java.lang.IllegalStateException: Can not perform this action after onSaveInstanceState
2.     at android.support.v4.app.FragmentManagerImpl.checkStateLoss(FragmentManager.java:1314)
3.     at android.support.v4.app.FragmentManagerImpl.enqueueAction(FragmentManager.java:1325)

#### public abstract int commitAllowingStateLoss()

Like commit() but allows the commit to be executed after an activity's state is saved. This is dangerous because the commit can be lost if the activity needs to later be restored from its state, so this should only be used for cases where it is okay for the UI state to change unexpectedly on the user.

onSaveInstanceState方法是在该Activity即将被销毁前调用，来保存Activity数据的，如果在保存玩状态后

#### Fragment的展现与Activity状态丢失 IllegalStateException:Can not perform this action after onSaveInstanceState

2015-11-07 16:38:30

#### 解决 IllegalStateException: Can not perform this action after onSaveInstanceState

2015-11-16 23:08:41

#### 由FragmentTabHost导致的Can not perform this action after onSaveInstanceState异常

2017-03-16 19:22:01

#### Android-异常处理-Can not perform this action after onSaveInstanceState

2017-05-04 18:11:09

#### Can not perform this action after onSaveInstanceState 解决办法

2014-11-10 17:33:55

#### Fragment Or DialogFragment Can not perform this action after onSaveInstanceState

2015-09-26 01:44:12

#### 解决Can not perform this action after onSaveInstanceState异常总结

2017-07-07 15:59:21

#### FragmentTransaction commit Can not perform this action after onSaveInstanceState

2014-08-15 20:13:58

#### 【Android策略】Can not perform this action after onSaveInstanceState with DialogFragment

2015-12-29 16:17:26

#### FragmentDialog::Can not perform this action after onSaveInstanceState

2014-04-21 16:24:31

## 不良信息举报

IllegalStateException: Can not perform this action after onSaveInstanceState