Splash page duration (and multiple resolutions)

Got a LiveCode personal license? Are you a beginner, hobbyist or educator that's new to LiveCode? This forum is the place to go for help getting started. Welcome!

Moderators: FourthWorld, heatherlaine, Klaus, kevinmiller

Post Reply
yachris
Posts: 20
Joined: Sat May 21, 2011 1:26 am

Splash page duration (and multiple resolutions)

Post by yachris » Thu Jun 02, 2011 11:38 pm

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!

Mark
Livecode Opensource Backer
Livecode Opensource Backer
Posts: 5150
Joined: Thu Feb 23, 2006 9:24 pm
Contact:

Re: Splash page duration (and multiple resolutions)

Post by Mark » Sun Jun 05, 2011 1:46 pm

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
The biggest LiveCode group on Facebook: https://www.facebook.com/groups/livecode.developers
The book "Programming LiveCode for the Real Beginner"! Get it here! http://tinyurl.com/book-livecode

yachris
Posts: 20
Joined: Sat May 21, 2011 1:26 am

Re: Splash page duration (and multiple resolutions)

Post by yachris » Mon Jun 06, 2011 2:03 am

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).

Mark
Livecode Opensource Backer
Livecode Opensource Backer
Posts: 5150
Joined: Thu Feb 23, 2006 9:24 pm
Contact:

Re: Splash page duration (and multiple resolutions)

Post by Mark » Mon Jun 06, 2011 2:49 am

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
The biggest LiveCode group on Facebook: https://www.facebook.com/groups/livecode.developers
The book "Programming LiveCode for the Real Beginner"! Get it here! http://tinyurl.com/book-livecode

Post Reply