How to set portrait mode with libGDX?

DomeWTF picture DomeWTF · May 1, 2014 · Viewed 14.2k times · Source

I've created a game, and it is OK in desktop mode, but when i launch it on my S3, it goes in landscape mode, how can i change it?

Thank you in advance

Answer

Orlando Herrera picture Orlando Herrera · Feb 24, 2016

enter image description here

android:screenOrientation:

  • landscape
  • portrait
  • unspecified
  • behind
  • reverseLandscape
  • reversePortrait
  • sensorLandscape
  • sensorPortrait

For more information you can visit: Android Activity Element