title: Touching ouside dialog activity - in which order the methods should be called?
body: <p>I have an activity (lets say Activity A) from which I start another one (Activity B) with <code>android:theme="android:Theme.Dialog"</code> and this is not occupy the entire screen. On the second activity when touching on outside of this dialog activity I finish the activity. </p>
  
  <p>I observed that when touching outside of Activity B first is called <code>onResume()</code> method of activity A and after that <code>onStop()</code> method of Activity B. </p>
  
  <p>Maybe is a stupid question, but is this normal? I expected to be exactly opposite: first to be called <code>onStop()</code> method of activity B and after that <code>onResume()</code> method from activity A.</p>