default splash screen time

Hi,

I usually hide the spash screen “enable = false” (paid version) but now i’ve a client that wants one with his brand for a couple of seconds. I smiled because i thought i would do that in 1s.

splashScreen = { enable = true, image = "splash.jpg" },

done…i thought…

tried on my ipad mini 4. worked like a charm. couple of seconds…gone to my main screen.

on android…i tried on my htc 10…it doesn’t last even 1s. i can barely see it and looks bad the transition.

my question is. can i control the time it will display the splashScreen? and why it acts different from android and IOS, time should be time…2 seconds are 2 seconds independent of the operating system.

regards,

Carlos.

I believe there is little control over how long the device takes to start up the app and how fast it can show the splash screen. Basically we think we are showing it for two seconds, but the device is slow to get the first screen displayed and that’s chewing into the two seconds. 

Rob

if you want to display splash screen for longer then simply put this at the top of your main.lua

-- pause for company logo local now = os.time() while os.time() \< now + 2 do end

adjust to your specific needs

thanks adrianm and Rob,

I know i can do it myself, i was doing that way before corona introduced this splash screen, but since corona have one built in. i was wondering if i could have some sort of control. guess not and guess i will simple put it to false and use one of my own code.

corona tried to give us some control, with the ability to have two different images for IOS and Android, but even that option is useless since IOS devices have 4:3 ratio and 16:9 ratio screens and if i use a image (1440x2280) like i always did for my backgrounds, it will give me black border on ipad.

Ideally your splash screen will be a square and let us draw that on top of our black background.

Rob

I believe there is little control over how long the device takes to start up the app and how fast it can show the splash screen. Basically we think we are showing it for two seconds, but the device is slow to get the first screen displayed and that’s chewing into the two seconds. 

Rob

if you want to display splash screen for longer then simply put this at the top of your main.lua

-- pause for company logo local now = os.time() while os.time() \< now + 2 do end

adjust to your specific needs

thanks adrianm and Rob,

I know i can do it myself, i was doing that way before corona introduced this splash screen, but since corona have one built in. i was wondering if i could have some sort of control. guess not and guess i will simple put it to false and use one of my own code.

corona tried to give us some control, with the ability to have two different images for IOS and Android, but even that option is useless since IOS devices have 4:3 ratio and 16:9 ratio screens and if i use a image (1440x2280) like i always did for my backgrounds, it will give me black border on ipad.

Ideally your splash screen will be a square and let us draw that on top of our black background.

Rob