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. Unable to resume activity {com.viterra.glencoregrain/com.viterra.glencoregrain.MainActivity}: java.lang.IllegalStateException: Can not perform this action after onSaveInstanceState
  4. Exception thrown on Scheduler.Worker thread. Add `onError` handling.
  5. Unable to resume activity {babyoye.com/babyoye.com.activity.MainActivity}: java.lang.IllegalStateException: Can not perform this action after onSaveInstanceState
  6. Failure delivering result ResultInfo{who=null, request=1, result=-1, data=null} to activity {com.pileproject.drive.nxt/com.pileproject.drive.execution.ExecutionActivity}: java.lang.IllegalStateException: Can not perform this action after onSaveInstanceState
  7. 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
  8. Failure delivering result ResultInfo{who=null, request=49374, result=-1, data=Intent { act=com.google.zxing.client.android.SCAN flg=0x80000 (has extras) }} to activity {com.example.shiptrack/com.example.shiptrack.Packages}: java.lang.IllegalStateException: 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
256Web pages

Similar

Specific cases

External results for this pattern (62)

  1. aNnYvIrUsvia GitHub1 month ago
    Can not perform this action after onSaveInstanceState
    Show stack trace
  2. jesmrecvia GitHub2 months ago
    Can not perform this action after onSaveInstanceState
    Show stack trace
  3. idelcanovia GitHub4 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 Overflow4 months ago
    Can not perform this action after onSaveInstanceState
    Show stack trace
  7. Yogeshvia Stack Overflow5 months ago
  8. teau01via GitHub5 months ago
    Can not perform this action after onSaveInstanceState
    Show stack trace
  9. rezaiyanvia GitHub5 months ago
    Can not perform this action after onSaveInstanceState
    Show stack trace