I want to make my App landscape only, so I am using the method provided here: i want to make my application only in landscape in android
In short, I am adding android:screenOrientation="landscape"
to my manifest file.
It is partially working, but the problem is that it only allows the user to use the app in one of the two landscape orientations. How can I tell the app that it is allowed to use either of the landscape orientations?
(testing on Nexus 7 4.2)
Use android:screenOrientation="sensorLandscape"
but it will work only if you are building your project on Android 2.3 or above.
android:screenOrientation
has several options you can find in the documentation
What you probably want is
"sensorLandscape"
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With