title: Automatically log Android lifecycle events using ActivityLifecycleCallbacks?
body: <p>I am trying to automatically capture and log Android lifecycle events using ActivityLifecycleCallbacks, however documentation on this matter is scarce, to say the least:</p>
  
  <pre><code>    public void registerActivityLifecycleCallbacks (Application.ActivityLifecycleCallbacks callback)
  </code></pre>
  
  <p>I don't want to have to extend the Activity class or override the existing lifecycle methods (onCreate, onResume, etc...)  I'm looking to have a separate class listening for these events and acting accordingly. </p>
  
  <p>Does anyone have any experience in this, or have links to good solid documentation or tutorials on how this works?  Specifically, how to register for ActivityLifecycleCallbacks, and how to handle them?</p>