在Android的活动调用onResume [英] Calling onResume in Android's activity

查看:184
本文介绍了在Android的活动调用onResume的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

它是确定一个活动的程序通过调用this.OnResume()来强制onResume事件?或者我应该实现的双方OnResume和第一个成员?

is it ok in an activity's procedure to force the onResume event by calling this.OnResume() ? Or should I implement another procedure that's called by both OnResume and by the first member ?

推荐答案

实施这就是所谓的在 onResume的覆盖另一个过程()。后者并不打算被你叫,那就是整容或准备迎接活动的便捷方法时,其状态更改为恢复。很多像的onCreate()通过对的onDestroy()

Implement another procedure that's called in your override of onResume(). The latter is not intended to be called by you, it's a convenience method that tidies up or readies the activity when its state changes to resume. A lot like onCreate() through to onDestroy().

这篇关于在Android的活动调用onResume的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆