【发布时间】:2015-03-29 13:42:29
【问题描述】:
请帮助我更深入地了解活动 lyfecycle。 http://developer.android.com/guide/components/activities.html#ImplementingLifecycleCallbacks 他们说:
活动的前台生命周期发生在调用 onResume() 和对 onPause() 的调用。
这是否意味着,在调用 onResume() 之后,或者在 onResume() 完全完成它的工作之后,该活动会在某个时刻恢复? 关于可见状态和 onStart 的类似问题。 如果第二个是正确的(方法完全完成了它的工作),那么 super.method() 还是由我在活动类中覆盖?
@Override
protected void onResume() {
super.onResume();
// is it now "resumed" after super.onResume()?
}
【问题讨论】:
标签: android android-activity activity-lifecycle