Is there any way to set the landscape screen mode, use code or function?

Could anyone give an example or a code that set the mode automatically ...
thanks

Hi,
thanks!

By the way, you can set the default orientation for your app using the new build.settings file in Corona 2.0. Be advised 2.0 is still in BETA.

Here's an example of what you would put in your build.settings file.

1
2
3
4
5
6
7
8
9
-- build.settings
 
settings =
{
        orientation =
        {
                default = "landscapeRight",
        },
}

This file cause massive slow down on Android. Is there some other effective way to rotate the screen?

views:1707 update:2011/9/21 9:18:04
corona forums © 2003-2011