Android - 在我调用super的Activity中异常SuperNotCalledException

时间:2013-05-07 23:17:01

标签: android android-activity android-lifecycle

我有这个例外:

android.app.SuperNotCalledException: Activity {com.problemio/com.problemio.SupportActivity} did not call through to super.onDestroy()
        at android.app.ActivityThread.performDestroyActivity(ActivityThread.java:3024)
        at android.app.ActivityThread.handleDestroyActivity(ActivityThread.java:3100)
        at android.app.ActivityThread.access$2100(ActivityThread.java:132)
        at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1066)
        at android.os.Handler.dispatchMessage(Handler.java:99)
        at android.os.Looper.loop(Looper.java:143)
        at android.app.ActivityThread.main(ActivityThread.java:4196)
        at java.lang.reflect.Method.invokeNative(Native Method)
        at java.lang.reflect.Method.invoke(Method.java:507)
        at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:839)
        at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:597)
        at dalvik.system.NativeStart.main(Native Method)

但我在Activity中有这个方法:

@Override
public void onDestroy() 
{
    super.onDestroy();

    // very important:
    if (mHelper != null) mHelper.dispose();
    mHelper = null;
}    

为什么会发生此异常?我似乎打电话给super.onDestroy()

谢谢!

0 个答案:

没有答案