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!
Splash page duration (and multiple resolutions)
Moderators: FourthWorld, heatherlaine, Klaus, kevinmiller
Re: Splash page duration (and multiple resolutions)
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
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
The book "Programming LiveCode for the Real Beginner"! Get it here! http://tinyurl.com/book-livecode
Re: Splash page duration (and multiple resolutions)
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: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
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.Mark wrote:Can't you just use one image for the largest resolution?
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)
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
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
The book "Programming LiveCode for the Real Beginner"! Get it here! http://tinyurl.com/book-livecode