zoukankan      html  css  js  c++  java
  • Android.app.SuperNotCalledException错误

    10-04 14:47:29.914: E/AndroidRuntime(4941): FATAL EXCEPTION: main
    10-04 14:47:29.914: E/AndroidRuntime(4941): android.app.SuperNotCalledException: Activity {com.solar/com.solar.TSettingActivity} did not call through to super.onDestroy()
    10-04 14:47:29.914: E/AndroidRuntime(4941): at android.app.ActivityThread.performDestroyActivity(ActivityThread.java:2661)
    10-04 14:47:29.914: E/AndroidRuntime(4941): at android.app.ActivityThread.handleDestroyActivity(ActivityThread.java:2690)
    10-04 14:47:29.914: E/AndroidRuntime(4941): at android.app.ActivityThread.access$2100(ActivityThread.java:117)
    10-04 14:47:29.914: E/AndroidRuntime(4941): at android.app.ActivityThread$H.handleMessage(ActivityThread.java:964)
    10-04 14:47:29.914: E/AndroidRuntime(4941): at android.os.Handler.dispatchMessage(Handler.java:99)
    10-04 14:47:29.914: E/AndroidRuntime(4941): at android.os.Looper.loop(Looper.java:130)
    10-04 14:47:29.914: E/AndroidRuntime(4941): at android.app.ActivityThread.main(ActivityThread.java:3683)
    10-04 14:47:29.914: E/AndroidRuntime(4941): at java.lang.reflect.Method.invokeNative(Native Method)
    10-04 14:47:29.914: E/AndroidRuntime(4941): at java.lang.reflect.Method.invoke(Method.java:507)
    10-04 14:47:29.914: E/AndroidRuntime(4941): at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:839)
    10-04 14:47:29.914: E/AndroidRuntime(4941): at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:597)
    10-04 14:47:29.914: E/AndroidRuntime(4941): at dalvik.system.NativeStart.main(Native Method)

    错误在于红字部分。下面是错误代码

     protected void onDestroy() {
             //Do Something
             //super.onDestroy();没有调用父类的onDestroy()
     }    
  • 相关阅读:
    MySQL索引原理及慢查询优化
    MySQL单表百万数据记录分页性能优化
    linux下crontab命令的使用
    php递归读取目录
    php实现函数重载
    php数组常见的几种遍历方法
    ArtTemplate 使用笔记
    打算换工作的伙伴们,快来看啦,各种职位,随便挑咯...
    看看国外的javascript题目,你能全部做对吗?(分享)
    逛园子,看到个练习题,小试了一把(淘宝ued的两道小题)
  • 原文地址:https://www.cnblogs.com/zhujiabin/p/5938994.html
Copyright © 2011-2022 走看看