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 dev1993
, 1 year ago
via zendesk.com by Unknown author, 10 months ago
via Stack Overflow by Unknown author, 2 years ago
Can not perform this action after onSaveInstanceState
via Stack Overflow by IvanP
, 2 years ago
Can not perform this action after onSaveInstanceState
via Stack Overflow by Sanjay Majoka
, 8 months ago
Can not perform this action after onSaveInstanceState. after onBackPress() of Activity. Fatal Exception: java.lang.IllegalStateException: Can not perform this action after onSaveInstanceState
via GitHub by MisterY
, 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(FragmentManager.java:1527)
at android.support.v4.app.FragmentManagerImpl.popBackStackImmediate(FragmentManager.java:599)
at com.myapp.activities.ActivityManageContacts.onBackPressed(ActivityManageContacts.java:265)
at android.app.Activity.onKeyUp(Activity.java:2465)
at android.view.KeyEvent.dispatch(KeyEvent.java:2646)
at android.support.v7.app.AppCompatActivity.dispatchKeyEvent(AppCompatActivity.java:533)
at android.support.v7.view.WindowCallbackWrapper.dispatchKeyEvent(WindowCallbackWrapper.java:53)
at android.support.v7.app.AppCompatDelegateImplBase$AppCompatWindowCallbackBase.dispatchKeyEvent(AppCompatDelegateImplBase.java:254)
at android.view.ViewRootImpl$ViewPostImeInputStage.processKeyEvent(ViewRootImpl.java:4038)
at android.view.ViewRootImpl$ViewPostImeInputStage.onProcess(ViewRootImpl.java:4000)
at android.view.ViewRootImpl$InputStage.deliver(ViewRootImpl.java:3562)
at android.view.ViewRootImpl$InputStage.onDeliverToNext(ViewRootImpl.java:3615)
at android.view.ViewRootImpl$InputStage.forward(ViewRootImpl.java:3581)
at android.view.ViewRootImpl$AsyncInputStage.forward(ViewRootImpl.java:3698)
at android.view.ViewRootImpl$InputStage.apply(ViewRootImpl.java:3589)
at android.view.ViewRootImpl$AsyncInputStage.apply(ViewRootImpl.java:3755)
at android.view.ViewRootImpl$InputStage.deliver(ViewRootImpl.java:3562)
at android.view.ViewRootImpl$InputStage.onDeliverToNext(ViewRootImpl.java:3615)
at android.view.ViewRootImpl$InputStage.forward(ViewRootImpl.java:3581)
at android.view.ViewRootImpl$InputStage.apply(ViewRootImpl.java:3589)
at android.view.ViewRootImpl$InputStage.deliver(ViewRootImpl.java:3562)
at android.view.ViewRootImpl$InputStage.onDeliverToNext(ViewRootImpl.java:3615)
at android.view.ViewRootImpl$InputStage.forward(ViewRootImpl.java:3581)
at android.view.ViewRootImpl$AsyncInputStage.forward(ViewRootImpl.java:3731)
at android.view.ViewRootImpl$ImeInputStage.onFinishedInputEvent(ViewRootImpl.java:3892)
at android.view.inputmethod.InputMethodManager$PendingEvent.run(InputMethodManager.java:2208)
at android.view.inputmethod.InputMethodManager.invokeFinishedInputEventCallback(InputMethodManager.java:1849)
at android.view.inputmethod.InputMethodManager.finishedInputEvent(InputMethodManager.java:1840)
at android.view.inputmethod.InputMethodManager$ImeInputEventSender.onInputEventFinished(InputMethodManager.java:2185)
at android.view.InputEventSender.dispatchInputEventFinished(InputEventSender.java:141)
at android.os.MessageQueue.nativePollOnce(MessageQueue.java)
at android.os.MessageQueue.next(MessageQueue.java:143)
at android.os.Looper.loop(Looper.java:122)
at android.app.ActivityThread.main(ActivityThread.java:5254)
at java.lang.reflect.Method.invoke(Method.java)
at java.lang.reflect.Method.invoke(Method.java:372)
at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:902)

Users with the same issue

Once, 1 year ago
4 times, 1 year ago
Samebug visitor profile picture
Unknown user
Once, 1 year ago
Samebug visitor profile picture
Unknown user
Once, 1 year ago
Samebug visitor profile picture
Unknown user
Once, 1 year ago
46 more bugmates

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