title: Handle application states (starting/stopping) not activity states
body: <p>I'm working on my 1st Android app and wondering how to handle activation/deactivation/starting/stopping globally, not on Activity level.</p>
  
  <p>This great article shows states transition for Activities:
  <a href="http://developer.android.com/reference/android/app/Activity.html#ActivityLifecycle" rel="nofollow">http://developer.android.com/reference/android/app/Activity.html#ActivityLifecycle</a></p>
  
  <p>Is there something similar for Application states?</p>
  
  <p>For example at iOS and Windows Phone app there is clear app states separated from activities (views, controllers, whatever).</p>
  
  <p>I'm asking because I want to perform certain operations only once per app loading/exiting not with every activity starting/stopping</p>