开发者

how to detect when an Android activity starts and ends [duplicate]

This question already has answers here: Closed 11 years ago.

Possible Duplicate:

Android Activity Life Cycle - difference between onPause() and OnStop()

my question is about if it is possible to detect when an Android activity starts/ends.

The idea would be to have a liste开发者_运维知识库ner o callback method to execute some code during those events, but I can't find anyone :_(

Thank you very much in advance for your help!!!


Checkout the android activity life cycle. You have hooks available to do custom tasks during the various life cycle events.

0

上一篇:

下一篇:

精彩评论

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

最新问答

问答排行榜