-1

当我在 Eclipse 模拟器中开始我的活动时,我收到了消息

不幸的是,应用程序已停止

我不明白 LogCat 我的 logCat 说请帮助我我开始失去希望。

04-24 15:52:19.729: W/Trace(982): Unexpected value from nativeGetEnabledTags: 0
04-24 15:52:19.729: W/Trace(982): Unexpected value from nativeGetEnabledTags: 0
04-24 15:52:20.599: D/dalvikvm(982): GC_FOR_ALLOC freed 83K, 8% free 2567K/2788K, paused 60ms, total 63ms
04-24 15:52:20.609: I/dalvikvm-heap(982): Grow heap (frag case) to 3.225MB for 614416-byte allocation
04-24 15:52:20.679: D/dalvikvm(982): GC_FOR_ALLOC freed 2K, 7% free 3165K/3392K, paused 65ms, total 66ms
04-24 15:52:20.789: D/dalvikvm(982): GC_CONCURRENT freed <1K, 7% free 3165K/3392K, paused 32ms+16ms, total 114ms
04-24 15:52:20.989: D/dalvikvm(982): GC_CONCURRENT freed 674K, 24% free 2906K/3792K, paused 25ms+24ms, total 114ms
04-24 15:52:21.049: D/AndroidRuntime(982): Shutting down VM
04-24 15:52:21.061: W/dalvikvm(982): threadid=1: thread exiting with uncaught exception (group=0x40a70930)
04-24 15:52:21.069: E/AndroidRuntime(982): FATAL EXCEPTION: main
04-24 15:52:21.069: E/AndroidRuntime(982): android.app.SuperNotCalledException: Activity {tabet.salah.ventemagasin/tabet.salah.ventemagasin.LoginActivity} did not call through to super.onCreate()
04-24 15:52:21.069: E/AndroidRuntime(982):  at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2146)
04-24 15:52:21.069: E/AndroidRuntime(982):  at android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:2230)
04-24 15:52:21.069: E/AndroidRuntime(982):  at android.app.ActivityThread.access$600(ActivityThread.java:141)
04-24 15:52:21.069: E/AndroidRuntime(982):  at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1234)
04-24 15:52:21.069: E/AndroidRuntime(982):  at android.os.Handler.dispatchMessage(Handler.java:99)
04-24 15:52:21.069: E/AndroidRuntime(982):  at android.os.Looper.loop(Looper.java:137)
04-24 15:52:21.069: E/AndroidRuntime(982):  at android.app.ActivityThread.main(ActivityThread.java:5039)
04-24 15:52:21.069: E/AndroidRuntime(982):  at java.lang.reflect.Method.invokeNative(Native Method)
04-24 15:52:21.069: E/AndroidRuntime(982):  at java.lang.reflect.Method.invoke(Method.java:511)
04-24 15:52:21.069: E/AndroidRuntime(982):  at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:793)
04-24 15:52:21.069: E/AndroidRuntime(982):  at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:560)
04-24 15:52:21.069: E/AndroidRuntime(982):  at dalvik.system.NativeStart.main(Native Method)
4

4 回答 4

4

把这个放在你的onCreate()

super.onCreate()
于 2013-04-24T15:55:06.100 回答
3

在您的活动LoginActivityonCreate添加:

super.onCreate();
于 2013-04-24T15:55:18.617 回答
3

你可能没有打电话给super.onCreate()LoginActivityonCreate

于 2013-04-24T15:55:20.303 回答
3

android.app.SuperNotCalledException:活动 {tabet.salah.ventemagasin/tabet.salah.ventemagasin.LoginActivity} 没有调用到 super.onCreate()

调用super.onCreate(savedinstancestate)你的 LoginActivityonCreate()方法

于 2013-04-24T15:55:20.467 回答