Detailed android activity lifecycle (onAttachedToWindow())

Posted by Ralkie on Stack Overflow See other posts from Stack Overflow or by Ralkie
Published on 2010-06-14T14:38:34Z Indexed on 2010/06/14 14:42 UTC
Read the original article Hit count: 1124

Filed under:
|
|

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.

© Stack Overflow or respective owner

Related posts about android

Related posts about dialog