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

Searched on Google with the first line of a JAVA stack trace?

We can recommend more relevant solutions and speed up debugging when you paste your entire stack trace with the exception message. Try a sample exception.

Recommended solutions based on your search

Solutions on the web

via Stack Overflow by marjanbaz
, 2 years ago
via GitHub by Amab
, 2 years ago
via GitHub by Amab
, 2 years ago
via GitHub by Amab
, 2 years ago
via GitHub by Amab
, 2 years ago
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.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)

Users with the same issue

2 times, 2 months ago
2 times, 7 months ago
Once, 1 year ago
Once, 1 year ago
Once, 1 year ago

Write tip

Know the solutions? Share your knowledge to help other developers to debug faster.