Reputation: 65
I'm writing an application for android that runs on landscape mode. When i'm rotating my device on 180 degrees it stays the way it is. What can i do\change and where so it can run on both horizontal directions?
Upvotes: 4
Views: 3492
Reputation: 638
Make sure your device is auto rotation is ON or working fine than
use this code in your manifest.xml in your activity in which you waana rotate d screen.
android:screenOrientation="sensorLandscape"
it works fine for me :)
Upvotes: 0
Reputation: 2080
In Manifest add below code in activity you want to have both sides.
android:screenOrientation="sensorLandscape"
Upvotes: 14
Reputation: 5575
Some devices just don't do the "upside down" mode. My Galaxy Nexus rotates only to three orientations.
Upvotes: 0