java.lang.IllegalStateException: Activity has been destroyed

oschina.net | 2 months 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. Speed up your debug routine!

    Automated exception search integrated into your IDE

  2. 0

    java.lang.IllegalStateException: Can not perform this action after onSaveInstanceState

    windowshelp.xyz | 7 months ago
    java.lang.IllegalStateException: Activity has been destroyed
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:1314)
    2. android.support.v4.app.BackStackRecord.commitInternal(BackStackRecord.java:541)
    3. android.support.v4.app.BackStackRecord.commitAllowingStateLoss(BackStackRecord.java:529)
    3 frames
  3. cn.ditouch.client
    DiTouchClientActivity$ConnectServerTask.onPostExecute
    1. cn.ditouch.client.activity.BaseFragmentActivity.removeFragmentDialog(BaseFragmentActivity.java:129)
    2. cn.ditouch.client.activity.BaseFragmentActivity.removeFragmentDialog(BaseFragmentActivity.java:114)
    3. cn.ditouch.client.guilin.DiTouchClientActivity.access$1(DiTouchClientActivity.java:1)
    4. cn.ditouch.client.guilin.DiTouchClientActivity$ConnectServerTask.onPostExecute(DiTouchClientActivity.java:299)
    5. cn.ditouch.client.guilin.DiTouchClientActivity$ConnectServerTask.onPostExecute(DiTouchClientActivity.java:1)
    5 frames
  4. Android Platform
    ActivityThread.main
    1. android.os.AsyncTask.finish(AsyncTask.java:602)
    2. android.os.AsyncTask.access$600(AsyncTask.java:156)
    3. android.os.AsyncTask$InternalHandler.handleMessage(AsyncTask.java:615)
    4. android.os.Handler.dispatchMessage(Handler.java:99)
    5. android.os.Looper.loop(Looper.java:137)
    6. android.app.ActivityThread.main(ActivityThread.java:4424)
    6 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:784)
    2. com.android.internal.os.ZygoteInit.main(ZygoteInit.java:551)
    2 frames
  7. Android Platform
    NativeStart.main
    1. dalvik.system.NativeStart.main(Native Method)
    1 frame