title: onPause/Resume/Start/Stop order
body: <p>Im trying to detect the global Application onPause. For doing it I'm registering every Activity onResume, onPause, onStop calls. 
  I'd like to know if I can assume the calling order (when the ActivityA leaves and enters the ActivityB) is always:</p>
  
  <pre><code>A -&gt;onPause;
  B -&gt;onStart;
  B -&gt;onResume;
  A -&gt;onStop;
  </code></pre>
  
  <p>Is there some case where the A-> onStop is called before the B-> onResume?</p>
  
  <p>I'm asking that because thats the method I'm using for detecting the globalPause and want to validate it:</p>
  
  <pre><code> onPause(){
       active=false;
   }
  
   onResume(){
       active=true;
   }
  
   onStop(){
      if(!active) onGlobalPause();
   }
  </code></pre>
  
  <p>thanks</p>