1

When set to landscape the screen is fixed but when set to sensor landscape it can rotate to any orientation. I don't understand why it wont lock to landscape and reverse landscape as desired.

It is set in the manifest file.

I get no errors or warnings.

Thanks in advance for any help.

Samet ÖZTOPRAK
  • 3,112
  • 3
  • 32
  • 33
Jack.Ramsden
  • 414
  • 1
  • 5
  • 16

2 Answers2

0

take a look at this answer... (check if u put the screenOrientation argument on the right activity)

Community
  • 1
  • 1
Liran Peretz
  • 580
  • 8
  • 11
0

Resolved! The compiler had cached a previous version of the manifest file instead of building it every time like the APK. To fix it I deleted the generated files and folders like bin and gen etc.

Jack.Ramsden
  • 414
  • 1
  • 5
  • 16