1

I am using this in my manifest to rotate my app based on screen orientation

android:screenOrientation="sensorLandscape"
android:configChanges="orientation|keyboardHidden|keyboard|screenLayout|screenSize"

The problem is even after I lock my devices screen orientation, app still rotate if I change the orientation of the device.

I tried

android:screenOrientation="user"

But that makes my app rotate to portrait also which I don't want.

Can anyone help me on this?

Aaron
  • 1,342
  • 2
  • 16
  • 34
  • I have already answerd this question http://stackoverflow.com/questions/11208729/error-string-types-not-allowed-at-androidconfigchanges-in-manifest-file/11208857#11208857 – Vipul Jul 25 '13 at 14:15

1 Answers1

0

If you look at this question you should find your answer link. You have to set

android:screenOrientation="landscape"

Best wishes

Community
  • 1
  • 1
ZeusNet
  • 710
  • 9
  • 25
  • 1
    But that restricts the rotation to landscape right. I need both landscape right and landscape left. – Aaron Jul 25 '13 at 14:15
  • Ah ok sry. Havent seen this restriction. May that [link](http://stackoverflow.com/questions/10179508/androidscreenorientation-sensorlandscape-showing-error-for-a-project-with-the) could help you – ZeusNet Jul 25 '13 at 14:43