Page 1 of 1

Splash page duration (and multiple resolutions)

Posted: Thu Jun 02, 2011 11:38 pm
by yachris
Hello,

I've set up a splash screen for my app by choosing an image in the "Splash Screen" entry on the "Standalone Application Settings" page, and it works.

However (at least on the iOS simulator!) it is only displayed for a fraction of a second before the first (real) page of the stack is shown.

Is there any way to set the minimum amount of time it's shown? I know it's there partly to cover startup code time, so I don't want to add anything to that duration.

Also, I've seen a posting indicating "Support for splash/launch image at different resolutions". How do I arrange for multiple resolutions? I do have a "Splash.png" and "Splash@2x.png" images copied to the app, and the first one is the one I entered into the "Splash Page" entry box... is that enough to have the bigger one chosen for higher-resolution screens?

Thanks!

Re: Splash page duration (and multiple resolutions)

Posted: Sun Jun 05, 2011 1:46 pm
by Mark
yachris,

You can add a wait command to the preOpenStack handler to keep the splash screen visible for a longer time:

on preOpenStack
wait 5 seconds
end preOpenStack

Can't you just use one image for the largest resolution?

Best,

Mark

Re: Splash page duration (and multiple resolutions)

Posted: Mon Jun 06, 2011 2:03 am
by yachris
Mark wrote:yachris,

You can add a wait command to the preOpenStack handler to keep the splash screen visible for a longer time:

on preOpenStack
wait 5 seconds
end preOpenStack
Thanks... I'll give that a try. I wish, of course, that I could somehow find out how long it had been "starting up" (so the splash screen has already been visible) and subtract that from the five seconds. I have a fairly old iPod touch, and its startup time is already a second or two.
Mark wrote:Can't you just use one image for the largest resolution?
You can do the "splash.png", "splash@2x.png" for the ordinary iPhone and retina-display iPhone, and then there are two names (which I forget) which show up for the iPad in either portrait or landscape.

However, I'll have to do something on my own (for now, evidently...) for Android, since the commercial license doesn't do the splash screen thing (and there are so many different screen sizes and aspect ratios for Android).

Re: Splash page duration (and multiple resolutions)

Posted: Mon Jun 06, 2011 2:49 am
by Mark
Hi yachris,

You can put the milliseconds into a global variable at the beginning of the startUp handler and compare this value to the milliseconds at the end of the preOpenStack handler.

Kind regards,

Mark