Normally the activity is destroyed and recreated when Android detects
rotation, unless you specify that you want your activity to handle
events like turning the phone on its side or the keyboard opening.

It's documented here: 
http://developer.android.com/reference/android/content/res/Configuration.html
You can read more about rotation here: 
http://androidguys.com/?tag=android-rotation
and http://www.devx.com/wireless/Article/40792/1763/page/5

Some tutorials you may come across may be obsolete on one point: there
used to be only the flag keyboardhidden, but Android recently added
hardKeyboardHidden, to handle the case of soft keyboards.

onSaveInstanceState() and onDestroy() should be called before your
activity is killed and revived, I'm not sure why you don't see it.



Yusuf Saib
Android
·T· · ·Mobile· stick together
The views, opinions and statements in this email are those of the
author solely in their individual capacity, and do not necessarily
represent those of T-Mobile USA, Inc.



On Apr 28, 11:08 am, Kirk <[email protected]> wrote:
> What event in an Activity is called when the screen is flipped out to
> expose the keyboard on a G1? I need to save some instance variables,
> but it seems like onCreate is being called without onPause, onStop, or
> saveInstanceState being called first.
>
> Thanks in advance!
--~--~---------~--~----~------------~-------~--~----~
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