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 shuabing
, 10 months ago
via 2cto.com by Unknown author, 2 years ago
via Stack Overflow by IvanP
, 2 years ago
Can not perform this action after onSaveInstanceState
via GitHub by blFeedbackBot
, 1 year ago
Can not perform this action after onSaveInstanceState
via Stack Overflow by Vu An Hoa
, 2 years ago
Can not perform this action after onSaveInstanceState
via GitHub by hidroh
, 1 year ago
Can not perform this action after onSaveInstanceState
java.lang.IllegalStateException: Can not perform this action after onSaveInstanceState
at android.support.v4.app.FragmentManagerImpl.checkStateLoss(FragmentManagerImpl.java)
at android.support.v4.app.FragmentManagerImpl.popBackStackImmediate(FragmentManagerImpl.java)
at android.app.Activity.onKeyUp(Activity.java:2531)
at android.view.KeyEvent.dispatch(KeyEvent.java:2731)
at android.support.v7.app.AppCompatActivity.dispatchKeyEvent(AppCompatActivity.java)
at android.support.v7.view.WindowCallbackWrapper.dispatchKeyEvent(WindowCallbackWrapper.java)
at android.view.ViewRootImpl$ViewPostImeInputStage.processKeyEvent(ViewRootImpl.java:4659)
at android.view.ViewRootImpl$ViewPostImeInputStage.onProcess(ViewRootImpl.java:4615)
at android.view.ViewRootImpl$InputStage.deliver(ViewRootImpl.java:4110)
at android.view.ViewRootImpl$InputStage.onDeliverToNext(ViewRootImpl.java:4163)
at android.view.ViewRootImpl$InputStage.forward(ViewRootImpl.java:4129)
at android.view.ViewRootImpl$AsyncInputStage.forward(ViewRootImpl.java:4293)
at android.view.ViewRootImpl$InputStage.apply(ViewRootImpl.java:4137)
at android.view.ViewRootImpl$AsyncInputStage.apply(ViewRootImpl.java:4350)
at android.view.ViewRootImpl$InputStage.deliver(ViewRootImpl.java:4110)
at android.view.ViewRootImpl$InputStage.onDeliverToNext(ViewRootImpl.java:4163)
at android.view.ViewRootImpl$InputStage.forward(ViewRootImpl.java:4129)
at android.view.ViewRootImpl$InputStage.apply(ViewRootImpl.java:4137)
at android.view.ViewRootImpl$InputStage.deliver(ViewRootImpl.java:4110)
at android.view.ViewRootImpl$InputStage.onDeliverToNext(ViewRootImpl.java:4163)
at android.view.ViewRootImpl$InputStage.forward(ViewRootImpl.java:4129)
at android.view.ViewRootImpl$AsyncInputStage.forward(ViewRootImpl.java:4326)
at android.view.ViewRootImpl$ImeInputStage.onFinishedInputEvent(ViewRootImpl.java:4496)
at android.view.inputmethod.InputMethodManager$PendingEvent.run(InputMethodManager.java:2330)
at android.view.inputmethod.InputMethodManager.invokeFinishedInputEventCallback(InputMethodManager.java:1934)
at android.view.inputmethod.InputMethodManager.finishedInputEvent(InputMethodManager.java:1925)
at android.view.inputmethod.InputMethodManager$ImeInputEventSender.onInputEventFinished(InputMethodManager.java:2307)
at android.view.InputEventSender.dispatchInputEventFinished(InputEventSender.java:141)
at android.os.MessageQueue.nativePollOnce(MessageQueue.java)
at android.os.MessageQueue.next(MessageQueue.java:328)
at android.os.Looper.loop(Looper.java:164)
at android.app.ActivityThread.main(ActivityThread.java:5769)
at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:789)

Users with the same issue

Once, 7 months ago
7 times, 8 months ago
78 times, 9 months ago
Once, 11 months ago
2 times, 1 year ago

Write tip

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