我有这个例外:
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()
谢谢!