java.lang.IllegalStateException: Activity has been destroyed

oschina.net | 1 week ago
  1. 0

    android开发中出现的错误集(不断更新) - 李海珍的个人页面

    oschina.net | 10 hours ago
    java.lang.IllegalStateException: Activity has been destroyed
  2. 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: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