大家好,又见面了,我是你们的朋友全栈君。
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 ==============================”);
}
发布者:全栈程序员-用户IM,转载请注明出处:https://javaforall.cn/137046.html原文链接:https://javaforall.cn
【正版授权,激活自己账号】: Jetbrains全家桶Ide使用,1年售后保障,每天仅需1毛
【官方授权 正版激活】: 官方授权 正版激活 支持Jetbrains家族下所有IDE 使用个人JB账号...