首页 > 代码库 > Can not perform this action after onSaveInstanceState 解决办法

Can not perform this action after onSaveInstanceState 解决办法

报错

java.lang.IllegalStateException: Can not perform this action after onSaveInstanceState
	at android.support.v4.app.FragmentManagerImpl.checkStateLoss(FragmentManager.java:1360)
	at android.support.v4.app.FragmentManagerImpl.popBackStackImmediate(FragmentManager.java:496)
	at android.support.v4.app.FragmentActivity.onBackPressed(FragmentActivity.java:180)
	at android.app.Activity.onKeyUp(Activity.java:2193)
	at android.view.KeyEvent.dispatch(KeyEvent.java:2664)
	at android.app.Activity.dispatchKeyEvent(Activity.java:2423)
	at com.android.internal.policy.impl.PhoneWindow$DecorView.dispatchKeyEvent(PhoneWindow.java:1962)



解决方案 见链接

http://stackoverflow.com/questions/7575921/illegalstateexception-can-not-perform-this-action-after-onsaveinstancestate-h

Can not perform this action after onSaveInstanceState 解决办法