Android app always in portrait mode (DEF-3395)

Hi everybody, need an advice.

I’m trying to get my app work in landscape mode only on Android. I set Width and Height to landscape values, “Dynamic Orientation” is toggled off:
image

However, my bundled app (Release mode) is still running in portrait mode only. In AndroidManifest.xml file next to the compiled application I see:

android:screenOrientation=“portrait”

I’m working on Defold editor version: 1.2.133.
Is this a bug or am I doing something wrong?

Thanks in advance!

Strange, that should really be enough! Do you have a custom AndroidManifest specified in game.project?

Do you have a custom AndroidManifest specified in game.project?

No!

I use custom manifest as a workaround. This works for me.

Found the issue!

It seems if you don’t explicitly set the resolution in the game.project file the layout selection during bundle will not be used. In your case you should be able to just input 960 for width (even if that is the default value).

I have added an issue for this, hope to be able to fix it until next release: DEF-3395

2 Likes

Good to know. Thanks
Looking forward for the fix!

2 Likes

The fix will be released in a few weeks. In the meantime, please explicitly set width and height in game.project instead of leaving the default values.

1 Like

Sounds good! Thanks