Locking the screen to landscapeLeft/Right mode for my app

Hello

I’m having some trouble locking the android screen to landscapeLeft/Right mode for my application. I am using the build.settings file. When I use the following code:

[blockcode]
settings =
{
orientation =
{
default = “landscapeLeft”,
supported =
{
“landscapeLeft”
},
},

android =
{
versionCode = “3”
},

}
[/blockcode]

My android just reboots when I try to install the app. I have a HTC desire and are using the HTC sync program to install. ( I have also trying it on a friends phone with the same result)

With this code:

[blockcode]
settings =
{
orientation =
{
default = “landscapeLeft”,
supported =
{
“landscapeLeft”, “landscapeRight”
},
},

android =
{
versionCode = “3”
},

}
[/blockcode]

I get it installed on the phone, but for some reason the application still starts in “portrait” mode and you can still change from/to that mode, not just landscape, which is what I am trying to avoid.

Does anyone know how I can force it to start, and stay, in just landscape mode?
[import]uid: 116981 topic_id: 22462 reply_id: 322462[/import]

Mine only has this and works:

[lua]settings =
{
orientation =
{
default =“landscapeRight”,

supported =
{
“landscapeRight”,
},
},

android =
{
versionCode = “10”
},

androidPermissions =
{
“android.permission.INTERNET”,
“android.permission.ACCESS_NETWORK_STATE”
},

}[/lua] [import]uid: 10389 topic_id: 22462 reply_id: 89748[/import]

That one works for me, thanks a lot :slight_smile: [import]uid: 116981 topic_id: 22462 reply_id: 89857[/import]