开发者

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

开发者 https://www.devze.com 2023-03-12 03:49 出处:网络
This question already has answers here: Closed 11 years ago. Possible Duplicate: Android Activity Life Cycle - difference between onPause() and OnStop()
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

精彩评论

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