0
\$\begingroup\$

I'm developing a game using LibGDX and I'm using BaseGameUtils to implement Play Games Services in it. It's working very well. But my game is in landscape mode, so when I call leaderboard or achievements it opens up in landscape mode. I don't want that. I want the games services to open in portrait only. There's no entry of BaseGameUtils in my manifest file and I checked the Android Manifest file in BaseGameUtils module, but there's no <activity> in there.

How can I change the orientation when games services is displayed?

\$\endgroup\$
1
\$\begingroup\$

Try setRequestedOrientation(ActivityInfo.SCREEN_ORIENTATION_PORTRAIT); in your activity.

\$\endgroup\$
  • \$\begingroup\$ Okay I'll try this. \$\endgroup\$ – WeirdElfB0y Dec 18 '15 at 13:42

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.