开发者

Android life cycle method

Hi What are the android life cycle method executed when an activity is started from another activity and also the method that should be executed in corresponds to home button click. Is there any way to detect that user has pressed a home button ? is there exist an开发者_高级运维y unique method thatexecute as part of home button,am not meaning home button listener?


Android Activity lifecycle. OnCreate is called on the new activity, onPause on the old one.

You can't capture the home button press, or do anything with it, but onUserLeaveHint is called as an fyi.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜