Action cannot be performed at this phase of the lifecycle of Activity or Fragment

java.lang.IllegalStateException
Javadoc
Signals that a method has been invoked at an illegal or inappropriate time. In other words, the Java environment or Java application is not in an appropriate state for the requested operation. @author Jonni Kanerva @since JDK1.1
at android.support.v4.app.FragmentManagerImpl.checkStateLoss
at android.support.v4.app.FragmentManagerImpl.enqueueAction
at android.support.v4.app.BackStackRecord.commitInternal
(source)
at android.support.v4.app.BackStackRecord.commit
(source)
at android.support.v4.app.DialogFragment.show
(source)
4 frames hidden

Typical Exception Messages

  1. Can not perform this action after onSaveInstanceState
  2. Can not perform this action inside of onLoadFinished
  3. Can not perform this action after onSaveInstanceState E/ConnectivityService( 455): EVENT_NETWORK_INFO_CHANGED from unknown NetworkAgent D/ConnectivityService( 455): setProvNotificationVisibleIntent: E visible=false networkType=0 extraInfo=null
  4. Can not perform this action after onSaveInstanceState 08-08 12:40:32.727: E/AndroidRuntime(22924):

Origin

BackStackRecord.commit() has thrown an IllegalStateException

java.lang.IllegalStateException
3 frames hidden
android.support.v4.app.BackStackRecord.commit
253Web pages

Similar

Specific cases

External results for this pattern (62)

  1. aNnYvIrUsvia GitHub3 days ago
    Can not perform this action after onSaveInstanceState
    Show stack trace
  2. jesmrecvia GitHub1 week ago
    Can not perform this action after onSaveInstanceState
    Show stack trace
  3. idelcanovia GitHub2 months ago
    Can not perform this action after onSaveInstanceState
    Show stack trace
  4. Can not perform this action after onSaveInstanceState
    Show stack trace
  5. Can not perform this action after onSaveInstanceState
    Show stack trace
  6. ThooTHoootvia Stack Overflow3 months ago
    Can not perform this action after onSaveInstanceState
    Show stack trace
  7. Yogeshvia Stack Overflow3 months ago
  8. teau01via GitHub3 months ago
    Can not perform this action after onSaveInstanceState
    Show stack trace
  9. rezaiyanvia GitHub3 months ago
    Can not perform this action after onSaveInstanceState
    Show stack trace