java.lang.IllegalStateException: Activity has been destroyed

GitHub | HolenZhou | 2 years ago
tip
Your exception is missing from the Samebug knowledge base.
Here are the best solutions we found on the Internet.
Click on the to mark the helpful solution and get rewards for you help.
  1. 0

    IllegalStateException in getSupportRequestManagerFragment

    GitHub | 2 years ago | Tolriq
    java.lang.RuntimeException: Unable to destroy activity xxx.ui.MediasListActivity}: java.lang.IllegalStateException: Activity has been destroyed
  2. 0

    GitHub comment 795#162699960

    GitHub | 1 year ago | jt-gilkeson
    java.lang.IllegalStateException: Activity has been destroyed
  3. Speed up your debug routine!

    Automated exception search integrated into your IDE

Not finding the right solution?
Take a tour to get the most out of Samebug.

Tired of useless tips?

Automated exception search integrated into your IDE

Root Cause Analysis

  1. java.lang.IllegalStateException

    Activity has been destroyed

    at android.support.v4.app.FragmentManagerImpl.enqueueAction()
  2. Android Support v4
    BackStackRecord.commitAllowingStateLoss
    1. android.support.v4.app.FragmentManagerImpl.enqueueAction(FragmentManager.java:1399)
    2. android.support.v4.app.BackStackRecord.commitInternal(BackStackRecord.java:637)
    3. android.support.v4.app.BackStackRecord.commitAllowingStateLoss(BackStackRecord.java:620)
    3 frames
  3. com.talkweb.cloudcampus
    WebActivity$CustomChromeClient.openFileChooser
    1. com.talkweb.cloudcampus.view.ActionSheet.show(ActionSheet.java:65)
    2. com.talkweb.cloudcampus.view.ActionSheet$Builder.show(ActionSheet.java:484)
    3. com.talkweb.cloudcampus.jsbridge.WebActivity.selectImage(WebActivity.java:477)
    4. com.talkweb.cloudcampus.jsbridge.WebActivity$CustomChromeClient.openFileChooser(WebActivity.java:343)
    4 frames
  4. Android Platform
    ActivityThread.main
    1. android.webkit.CallbackProxy.handleMessage(CallbackProxy.java:859)
    2. android.os.Handler.dispatchMessage(Handler.java:99)
    3. android.os.Looper.loop(Looper.java:137)
    4. android.app.ActivityThread.main(ActivityThread.java:4829)
    4 frames
  5. Java RT
    Method.invoke
    1. java.lang.reflect.Method.invokeNative(Native Method)
    2. java.lang.reflect.Method.invoke(Method.java:511)
    2 frames
  6. Android
    ZygoteInit.main
    1. com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:842)
    2. com.android.internal.os.ZygoteInit.main(ZygoteInit.java:609)
    2 frames
  7. Android Platform
    NativeStart.main
    1. dalvik.system.NativeStart.main(Native Method)
    1 frame