Android:onResume是否总是在onCreate之后调用? [英] Android: Is onResume always called after onCreate?
本文介绍了Android:onResume是否总是在onCreate之后调用?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我需要知道是否至少有一次在调用 onCreate
之前调用 onResume
的实例.谢谢.
从活动生命周期来看,似乎并非如此.但是我要仔细检查.
解决方案
onResume()
永远不会在 onCreate()
之前被调用.
在活动生命周期中了解有关此内容的更多信息 >
I need to know if there is ever an instance when onResume
will be called before onCreate
has been called at least once. Thanks.
Edit: Judging by the activity life cycle, it doesn't seem so. But I want to double check.
解决方案
onResume()
will never be called before onCreate()
.
Read more about it in the Activity Lifecycle
这篇关于Android:onResume是否总是在onCreate之后调用?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文