Redbulbul
Redbulbul

Reputation: 65

App screen won't rotate both sides on landscape mode

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

Answers (3)

Manish Rajpurohit
Manish Rajpurohit

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

Ankii Rawat
Ankii Rawat

Reputation: 2080

In Manifest add below code in activity you want to have both sides.

 android:screenOrientation="sensorLandscape"

Upvotes: 14

Christine
Christine

Reputation: 5575

Some devices just don't do the "upside down" mode. My Galaxy Nexus rotates only to three orientations.

Upvotes: 0

Related Questions