title: how to detect when an Android activity starts and ends
body: <blockquote>
    <p><strong>Possible Duplicate:</strong><br>
    <a href="https://stackoverflow.com/questions/8515936/android-activity-life-cycle-difference-between-onpause-and-onstop">Android Activity Life Cycle - difference between onPause() and OnStop()</a>  </p>
  </blockquote>
  
  
  
  <p>my question is about if it is possible to detect when an Android activity starts/ends.</p>
  
  <p>The idea would be to have a listener o callback method to execute some code during those events, but I can't find anyone :_(</p>
  
  <p>Thank you very much in advance for your help!!!</p>