Android FATAL EXCEPTION:主要

时间:2012-09-10 19:45:03

标签: android eclipse exception

我是这个Android编程的新手,不知道从哪里开始我的问题也不知道我应该在这里发布什么。在这里,我在Eclipse中以红色显示日志。 当我启动应用程序,输入内容并单击“发送”时,应用程序将崩溃,我将在Eclipse中获取此日志。我正在学习本教程:Starting Another Activity

希望有人可以帮助我

09-10 21:40:45.783: E/AndroidRuntime(25911): FATAL EXCEPTION: main
09-10 21:40:45.783: E/AndroidRuntime(25911): android.app.SuperNotCalledException: Activity {com.example.hello.world/com.example.hello.world.DisplayMessageActivity} did not call through to super.onCreate()
09-10 21:40:45.783: E/AndroidRuntime(25911):    at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2160)
09-10 21:40:45.783: E/AndroidRuntime(25911):    at android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:2229)
09-10 21:40:45.783: E/AndroidRuntime(25911):    at android.app.ActivityThread.access$600(ActivityThread.java:139)
09-10 21:40:45.783: E/AndroidRuntime(25911):    at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1261)
09-10 21:40:45.783: E/AndroidRuntime(25911):    at android.os.Handler.dispatchMessage(Handler.java:99)
09-10 21:40:45.783: E/AndroidRuntime(25911):    at android.os.Looper.loop(Looper.java:154)
09-10 21:40:45.783: E/AndroidRuntime(25911):    at android.app.ActivityThread.main(ActivityThread.java:4945)
09-10 21:40:45.783: E/AndroidRuntime(25911):    at java.lang.reflect.Method.invokeNative(Native Method)
09-10 21:40:45.783: E/AndroidRuntime(25911):    at java.lang.reflect.Method.invoke(Method.java:511)
09-10 21:40:45.783: E/AndroidRuntime(25911):    at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:784)
09-10 21:40:45.783: E/AndroidRuntime(25911):    at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:551)
09-10 21:40:45.783: E/AndroidRuntime(25911):    at dalvik.system.NativeStart.main(Native Method)

1 个答案:

答案 0 :(得分:2)

onCreate的{​​{1}}方法中,将其称为第一行:

DisplayMessageActivity

事实上,你的教程说明了这一点(评论由我添加,但是......):

super.onCreate(savedInstanceState);