how to detect when an Android activity starts and ends [duplicate]
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.
精彩评论