Use the android:screenOrientation attribute when declaring your manifest: http://code.google.com/android/reference/android/R.styleable.html#AndroidManifestActivity
http://code.google.com/android/reference/android/R.styleable.html#AndroidManifestActivity_screenOrientation On Oct 19, 3:23 pm, Mark Hansen <[EMAIL PROTECTED]> wrote: > I was thinking Android switched orientation automatically based on the > phones position but I'm finding from users this is not the case. > > Anyone have some sample code on how to switch screen orientation based > on the position of the phone? > > Thanks, > > Mark --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Android Developers" group. To post to this group, send email to android-developers@googlegroups.com 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 -~----------~----~----~----~------~----~------~--~---