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 Praseed M
, 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:1493)
at android.support.v4.app.FragmentManagerImpl.enqueueAction(FragmentManager.java:1511)
at android.support.v4.app.BackStackRecord.commitInternal(BackStackRecord.java:638)
at android.support.v4.app.BackStackRecord.commit(BackStackRecord.java:617)
at praseed.p6c.tab_test.MapFrag.removeMap(MapFrag.java:216)
at praseed.p6c.tab_test.MapFrag.onDestroyView(MapFrag.java:204)
at android.support.v4.app.Fragment.performDestroyView(Fragment.java:2186)
at android.support.v4.app.FragmentManagerImpl.moveToState(FragmentManager.java:1139)
at android.support.v4.app.FragmentManagerImpl.moveToState(FragmentManager.java:1252)
at android.support.v4.app.FragmentManagerImpl.moveToState(FragmentManager.java:1234)
at android.support.v4.app.FragmentManagerImpl.dispatchDestroy(FragmentManager.java:2083)
at android.support.v4.app.FragmentController.dispatchDestroy(FragmentController.java:244)
at praseed.p6c.tab_test.MainActivity.onDestroy(MainActivity.java:92)
at android.app.Activity.performDestroy(Activity.java:5291)
at android.app.Instrumentation.callActivityOnDestroy(Instrumentation.java:1112)

Users with the same issue

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

Write tip

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