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


Solutions on the web143

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**

Solution icon of github
via GitHub by jeromeyycp
, 6 months 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

Solution icon of github
via GitHub by fabiocarballo
, 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
via GitHub by searles
, 4 months ago
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:1318)
	at android.app.FragmentManagerImpl.popBackStackImmediate(FragmentManager.java:488)
	at android.app.Activity.onBackPressed(Activity.java:2167)
	at android.app.Activity.onKeyDown(Activity.java:2063)
	at android.view.KeyEvent.dispatch(KeyEvent.java:2609)
	at android.app.Activity.dispatchKeyEvent(Activity.java:2375)
	at com.android.internal.policy.impl.PhoneWindow$DecorView.dispatchKeyEvent(PhoneWindow.java:1847)
	at android.view.ViewRootImpl.deliverKeyEventPostIme(ViewRootImpl.java:3701)
	at android.view.ViewRootImpl.handleImeFinishedEvent(ViewRootImpl.java:3651)
	at android.view.ViewRootImpl$ViewRootHandler.handleMessage(ViewRootImpl.java:2818)
	at android.os.Handler.dispatchMessage(Handler.java:99)
	at android.os.Looper.loop(Looper.java:137)
	at android.app.ActivityThread.main(ActivityThread.java:5041)
	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:793)
	at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:560)
	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, 1 week 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