码迷,mamicode.com
首页 > 其他好文 > 详细

did not call through to super.onCreate()

时间:2017-02-13 12:18:36      阅读:197      评论:0      收藏:0      [点我收藏+]

标签:save   sage   main   没有   com   patch   got   div   loop   

android.util.SuperNotCalledException: Activity {com.xkyiliao.xkhospital/com.xkyiliao.xkhospital.activity.Act_HealthManagement} did not call through to super.onCreate()
    at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2412)
    at android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:2518)
    at android.app.ActivityThread.access$800(ActivityThread.java:153)
    at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1408)
    at android.os.Handler.dispatchMessage(Handler.java:102)
    at android.os.Looper.loop(Looper.java:135)
    at android.app.ActivityThread.main(ActivityThread.java:5429)
    at java.lang.reflect.Method.invoke(Native Method)
    at java.lang.reflect.Method.invoke(Method.java:372)
    at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:947)
    at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:742)

经检查,原来是Activity的onCreate(Bundle savedInstanceState)里面没有写:

super.onCreate(savedInstanceState);

 

did not call through to super.onCreate()

标签:save   sage   main   没有   com   patch   got   div   loop   

原文地址:http://www.cnblogs.com/mstk/p/6393107.html

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!