Detailed android activity lifecycle (onAttachedToWindow())
- by Ralkie
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) one.
My need comes from realizing that starting new activity (Theme.Dialog styled) from onAttachedToWindow() greatly improves response time if comparing to starting it from onCreate(). I wonder how this onAttachedToWindow() fits into whole android activity lifecycle. Official API ref description "Called when the window has been attached to the window manager" doesn't help a lot.