joshbeck wrote:
> Hello all,
> I am trying to determine exactly what happens when the screen
> orientation changes.
> (What I mean is, what happens to the lifecycle of an app when the user
> slides the screen out.)
> 
> Reason:
>  I show a dialog in my app.
>  If the user slides the screen out, the app crashes with
> 'View not attached to window manager error.'
> 
> Is onPause called or something else?

By default, the activity is destroyed (onPause() through onDestroy()) 
and then restarted.

I have a five-part blog series on this topic over at AndroidGuys:

http://androidguys.com/?s=rotational+forces&x=0&y=0

-- 
Mark Murphy (a Commons Guy)
http://commonsware.com

Android Training on the Ranch! -- Mar 16-20, 2009
http://www.bignerdranch.com/schedule.shtml

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[EMAIL PROTECTED]
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to