On Fri, Apr 1, 2011 at 4:47 PM, bob <[email protected]> wrote: > How do I specify on Android that I want an app to run only in portrait > mode and not do anything if the user rotates the device 90 degrees?
Put android:screenOrientation="portrait" for that activity in the manifest. You will probably also want to add android:configChanges="keyboardHidden|orientation", so Android does not unnecessarily destroy and recreate your activity. Please note that some tablet users, and eventually all Google TV users, will tend to use their devices in landscape mode. Google TV users, in particular, likely will be disinterested in turning their TVs on the side to use portrait-only activities. -- Mark Murphy (a Commons Guy) http://commonsware.com | http://github.com/commonsguy http://commonsware.com/blog | http://twitter.com/commonsguy Android Training in London: http://bit.ly/smand1, http://bit.ly/smand2 -- 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

