java.lang.IllegalStateException: Can not perform this action after onSaveInstanceState


Solutions on the web143

Solution icon of github
Can not perform this action after onSaveInstanceState

Solution icon of github
Can not perform this action after onSaveInstanceState

Solution icon of github
Can not perform this action after onSaveInstanceState

Solution icon of github
Can not perform this action after onSaveInstanceState

Solution icon of github
Can not perform this action after onSaveInstanceState

Solution icon of github
Can not perform this action after onSaveInstanceState

Solution icon of stackoverflow
Can not perform this action after onSaveInstanceState

Solution icon of github
via GitHub by shaun-blake
, 1 year ago
Can not perform this action after onSaveInstanceState

Solution icon of github
Can not perform this action after onSaveInstanceState

Solution icon of github
Can not perform this action after onSaveInstanceState**

Stack trace

java.lang.IllegalStateException: Can not perform this action after
onSaveInstanceState
	at android.app.FragmentManagerImpl.checkStateLoss(FragmentManager.java:1265)
	at android.app.FragmentManagerImpl.popBackStackImmediate(FragmentManager.java:451)
	at android.app.Activity.onBackPressed(Activity.java:2121)
	at android.app.Activity.onKeyUp(Activity.java:2099)
	at android.view.KeyEvent.dispatch(KeyEvent.java:2575)
	at android.app.Activity.dispatchKeyEvent(Activity.java:2329)
	at com.android.internal.policy.impl.PhoneWindow$DecorView.dispatchKeyEvent(PhoneWindow.java:1806)
	at android.view.ViewRootImpl.deliverKeyEventPostIme(ViewRootImpl.java:3327)
	at android.view.ViewRootImpl.deliverKeyEvent(ViewRootImpl.java:3288)
	at android.view.ViewRootImpl.handleMessage(ViewRootImpl.java:2463)
	at android.view.ViewRootImpl.processInputEvents(ViewRootImpl.java:845)
	at android.view.ViewRootImpl.handleMessage(ViewRootImpl.java:2475)
	at android.os.Handler.dispatchMessage(Handler.java:99)
	at android.os.Looper.loop(Looper.java:137)
	at android.app.ActivityThread.main(ActivityThread.java:4424)
	at java.lang.reflect.Method.invokeNative(Native Method)
	at java.lang.reflect.Method.invoke(Method.java:511)
	at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:787)
	at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:554)
	at dalvik.system.NativeStart.main(Native Method)

Write tip

You have a different solution? A short tip here would help you and many other users who saw this issue last week.

Users with the same issue

2 times, 6 days ago
2 times, 5 months ago
Samebug visitor profile picture
Unknown user
Once, 9 months ago
Once, 1 year ago
Once, 1 year ago
8 more bugmates