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 ==============================”);
}
今天的文章“did not call through to super.onResume”问题解决分享到此就结束了,感谢您的阅读。
版权声明:本文内容由互联网用户自发贡献,该文观点仅代表作者本人。本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌侵权/违法违规的内容, 请发送邮件至 举报,一经查实,本站将立刻删除。
如需转载请保留出处:https://bianchenghao.cn/6428.html