Why would you want to allow them to set it in settings when Android handles the rotation automagically? All you have to do is have a xml file in your "layout" directory, then for landscape have a xml file (with the same name) in your "layout-land" directory. When in portrait mode Android looks to the "layout" directory. When the phone is flipped to its side for landscape, Android looks to the "layout-land" directory.
Justin On Sun, Apr 18, 2010 at 1:35 PM, Isaac Wagner <[email protected]>wrote: > On Sun, Apr 18, 2010 at 2:24 PM, Anurag Singh <[email protected]> > wrote: > > > > Specify in your manifest file into Activity block as > > android:ScreenOrientation="portrait" > > > > My question is, how do I change the orientation through my program? I > want the user, through a settings option, to be able to change the > orientation. > > -- > 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]<android-developers%[email protected]> > For more options, visit this group at > http://groups.google.com/group/android-developers?hl=en > -- 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

