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 segmentfault.com by Unknown author, 11 months ago
Can not perform this action after onSaveInstanceState
via GitHub by atulagrwl
, 2 years ago
via iteye.com by Unknown author, 2 years ago
via Stack Overflow by marjanbaz
, 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:1438)
at android.app.FragmentManagerImpl.popBackStackImmediate(FragmentManager.java:581)
at android.app.Activity.onBackPressed(Activity.java:2537)
at android.app.Activity.onKeyUp(Activity.java:2511)
at android.view.KeyEvent.dispatch(KeyEvent.java:2695)
at android.view.ViewRootImpl$ViewPostImeInputStage.processKeyEvent(ViewRootImpl.java:4687)
at android.view.ViewRootImpl$ViewPostImeInputStage.onProcess(ViewRootImpl.java:4643)
at android.view.ViewRootImpl$InputStage.deliver(ViewRootImpl.java:4155)
at android.view.ViewRootImpl$InputStage.onDeliverToNext(ViewRootImpl.java:4208)
at android.view.ViewRootImpl$InputStage.forward(ViewRootImpl.java:4174)
at android.view.ViewRootImpl$AsyncInputStage.forward(ViewRootImpl.java:4320)
at android.view.ViewRootImpl$InputStage.apply(ViewRootImpl.java:4182)
at android.view.ViewRootImpl$AsyncInputStage.apply(ViewRootImpl.java:4377)
at android.view.ViewRootImpl$InputStage.deliver(ViewRootImpl.java:4155)
at android.view.ViewRootImpl$InputStage.onDeliverToNext(ViewRootImpl.java:4208)
at android.view.ViewRootImpl$InputStage.forward(ViewRootImpl.java:4174)
at android.view.ViewRootImpl$InputStage.apply(ViewRootImpl.java:4182)
at android.view.ViewRootImpl$InputStage.deliver(ViewRootImpl.java:4155)
at android.view.ViewRootImpl$InputStage.onDeliverToNext(ViewRootImpl.java:4208)
at android.view.ViewRootImpl$InputStage.forward(ViewRootImpl.java:4174)
at android.view.ViewRootImpl$AsyncInputStage.forward(ViewRootImpl.java:4353)
at android.view.ViewRootImpl$ImeInputStage.onFinishedInputEvent(ViewRootImpl.java:4523)
at android.view.inputmethod.InputMethodManager$PendingEvent.run(InputMethodManager.java:2336)
at android.view.inputmethod.InputMethodManager.invokeFinishedInputEventCallback(InputMethodManager.java:1940)
at android.view.inputmethod.InputMethodManager.finishedInputEvent(InputMethodManager.java:1931)
at android.view.inputmethod.InputMethodManager$ImeInputEventSender.onInputEventFinished(InputMethodManager.java:2313)
at android.view.InputEventSender.dispatchInputEventFinished(InputEventSender.java:141)
at android.os.MessageQueue.nativePollOnce(Native Method)
at android.os.MessageQueue.next(MessageQueue.java:328)
at android.os.Looper.loop(Looper.java:164)
at android.app.ActivityThread.main(ActivityThread.java:5811)
at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:844)

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.