title: Detailed android activity lifecycle (onAttachedToWindow())
body: <p>I'm interested in android activity lifecycle and I would like to get more detailed description/documentation/reference than widely available basic (onCreate->onStart->onResume)<a href="http://developer.android.com/reference/android/app/Activity.html#ActivityLifecycle" rel="noreferrer"> one</a>. </p>
  
  <p>My need comes from realizing that starting new activity (<code>Theme.Dialog</code> styled) from <code>onAttachedToWindow()</code> greatly improves response time if comparing to starting it from onCreate(). I wonder how this <code>onAttachedToWindow()</code> fits into whole android activity lifecycle. Official API ref description <em>"Called when the window has been attached to the window manager"</em> doesn't help a lot.</p>