android:screenOrientation=“sensorPortrait" not valid?

I need to limit my app to displaying in portrait mode.

Using android:screenOrientation=“Portrait" works great but I'd like to have the display change to reverse portrait when the device is rotated.

Using android:screenOrientation="sensorPortrait" results in a compile error. Funny thing though, if I use "sensorLandscape" instead it compiles fine but it's not what I need.

I'm using Eclipse v 3.7.2 with Android 2.3.3

Any ideas???

Thanks Rob

Upvotes: 9

Views: 5028

Answers (1)

Alexander
Alexander

Reputation: 48272

Google has made a typo, use sensorPortait

Upvotes: 17

Related Questions