My game is in landscape orientation and runs fine. With the game running, If I turn off the phone and turn it on again the splash screen of the phone comes up in landscape mode. I have to turn off my app for the phone’s splash screen to look normal again.
Testing on Android 4.4.2 using Samsung Galexy 4s. Corona Build V2014.2179
Here is my build file:
settings =
{
orientation =
{
default = “landscapeRight”,
content = “landscapeRight”,
supported =
{
“landscapeRight”
},
},
android =
{
usesPermissions =
{
“android.permission.INTERNET”
},
},
iphone =
{
plist =
{
UIPrerenderedIcon = true
},
}
}
Here is what I use to suspend the game app in every lua file:
---------// SUSPEND CODE FOR ANDROID //-----------
local function onSystemEvent(event)
if event.type == “applicationSuspend” then
native.requestExit()
end
end
Runtime:addEventListener(“system”, onSystemEvent)
-------// END SUSPEND CODE FOR ANDROID //----------
Any ideas on why this behavior is happening, please let me know. Am I doing somthing wrong? Is this a bug in Corona?
Thank You, Jan Elmer