"did not call through to super.onResume"问题解决

1. 错误信息:

12-23 22:47:26.720: W/dalvikvm(3864): threadid=1: thread exiting with uncaught exception (group=0x410af9d8)
12-23 22:47:26.720: E/AndroidRuntime(3864): FATAL EXCEPTION: main
12-23 22:47:26.720: E/AndroidRuntime(3864): java.lang.RuntimeException: Unable to resume activity {com.project.app/com.ui.activity.MainSFA}: android.app.SuperNotCalledException: Activity {com.project.app/com.ui.activity.MainSFA} did not call through to super.onResume()
12-23 22:47:26.720: E/AndroidRuntime(3864): at android.app.ActivityThread.performResumeActivity(ActivityThread.java:2457)
12-23 22:47:26.720: E/AndroidRuntime(3864): at android.app.ActivityThread.handleResumeActivity(ActivityThread.java:2485)
12-23 22:47:26.720: E/AndroidRuntime(3864): at android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:1999)
12-23 22:47:26.720: E/AndroidRuntime(3864): at android.app.ActivityThread.access$600(ActivityThread.java:126)
12-23 22:47:26.720: E/AndroidRuntime(3864): at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1150)
12-23 22:47:26.720: E/AndroidRuntime(3864): at android.os.Handler.dispatchMessage(Handler.java:99)
12-23 22:47:26.720: E/AndroidRuntime(3864): at android.os.Looper.loop(Looper.java:137)
12-23 22:47:26.720: E/AndroidRuntime(3864): at android.app.ActivityThread.main(ActivityThread.java:4439)

。。。。。。

2. 错误代码:

@Override
protected void onResume() {
Log.i(TAG, " onResume ==============================");
}

3. 正确代码:

@Override
protected void onResume() {
super.onResume();
Log.i(TAG, " onResume ==============================");
}

你可能感兴趣的:(onResume)