Specify in your manifest file into Activity block as
android:ScreenOrientation="portrait"

I've got an app that I don't want to auto-rotate.  Currently, I've got
> it set up so that it is always in portrait mode.  However, I'd like to
> add a setting to my preferences where the user can choose either
> portrait or landscape mode.  Is there a way to force screen rotation?
> Or, could I perhaps make two different layout XML files, one for
> portrait and one for landscape, and programmatically choose which to
> use?
>
> --
> 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
> android-developers+unsubscr...@googlegroups.com<android-developers%2bunsubscr...@googlegroups.com>
> 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 android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en

Reply via email to