Reputation: 5881
I want to be able to select WHICH direction on landscape mode to be rotated to. I have a particular situation where the device will be landscape, but it appears upside down to what I want. The accelerometer does not seem to be working.
Please note: this is for a specific enterprise app that is not going on the Google play store.
My code so far (in the manifest, under the application tag):
android:screenOrientation="landscape"
I have looked at the following posts:
How can i rotate the particular view landscape or portrait programatically in android?
Android screen orientation: forcing landscape?
Upvotes: 0
Views: 93
Reputation: 19223
your line should be in activity tag (each if you have few). Also you might use
android:screenOrientation="sensorLandscape"
API 9, on older versions it will be "normal" landscape
Upvotes: 1
Reputation: 1
Following is code which i used to display your activity into landscape mode only
<activity android:screenOrientation="landscape"
android:configChanges="orientation|keyboardHidden"
android:name="yourActivty"/>
Upvotes: 1