Hi all,
I know that for Android the splash settings on the standalone setting doesn’t work, do you guys have a workaround for this? Currently it takes a few secs for my app to load and I don’t want the user to see a black screen. So I created a cd with an image and a loading scrollbar on the first cd of the stack but it only shows after the black screen and not during. Any ideas how to lessen the time of the black screen or replace the black screen with something else?
Thanks !
Eddie
Android splash
Moderators: FourthWorld, heatherlaine, Klaus, kevinmiller, robinmiller
Re: Android splash
Make your working stack a substack of a new mainstack. The mainstack can have the progress bar and almost no code except to open the substack. The mainstack will open instantly and will be visible until the substack opens. When that happens you may want to hide the mainstack.
Jacqueline Landman Gay | jacque at hyperactivesw dot com
HyperActive Software | http://www.hyperactivesw.com
HyperActive Software | http://www.hyperactivesw.com
Re: Android splash
Also I've found on Android, avoid having any code in a preOpenStack handler
Andy .... LC CLASSIC ROCKS!
-
FourthWorld
- VIP Livecode Opensource Backer

- Posts: 10103
- Joined: Sat Apr 08, 2006 7:05 am
- Contact:
Re: Android splash
What did you try that didn't work out as expected?AndyP wrote: Sat Sep 12, 2020 6:36 pm Also I've found on Android, avoid having any code in a preOpenStack handler
Richard Gaskin
LiveCode development, training, and consulting services: Fourth World Systems
LiveCode Group on Facebook
LiveCode Group on LinkedIn
LiveCode development, training, and consulting services: Fourth World Systems
LiveCode Group on Facebook
LiveCode Group on LinkedIn
Re: Android splash
Just in general, if I have code in the preOpenStack handler, I've noticed that the delay with the black screen on startup is longer.FourthWorld wrote: Sat Sep 12, 2020 7:04 pmWhat did you try that didn't work out as expected?AndyP wrote: Sat Sep 12, 2020 6:36 pm Also I've found on Android, avoid having any code in a preOpenStack handler
Andy .... LC CLASSIC ROCKS!
Re: Android splash
Right, I see that too. That's why I move everything that isn't visual over to an openCard handler when possible. If the OP can do that, then a new mainstack may not be necessary.AndyP wrote: Sat Sep 12, 2020 7:13 pm Just in general, if I have code in the preOpenStack handler, I've noticed that the delay with the black screen on startup is longer.
Jacqueline Landman Gay | jacque at hyperactivesw dot com
HyperActive Software | http://www.hyperactivesw.com
HyperActive Software | http://www.hyperactivesw.com
-
FourthWorld
- VIP Livecode Opensource Backer

- Posts: 10103
- Joined: Sat Apr 08, 2006 7:05 am
- Contact:
Re: Android splash
That will always be the case, on all platforms, since the pre* messages execute before rendering.AndyP wrote: Sat Sep 12, 2020 7:13 pmJust in general, if I have code in the preOpenStack handler, I've noticed that the delay with the black screen on startup is longer.FourthWorld wrote: Sat Sep 12, 2020 7:04 pmWhat did you try that didn't work out as expected?AndyP wrote: Sat Sep 12, 2020 6:36 pm Also I've found on Android, avoid having any code in a preOpenStack handler
It's more noticeable on mobile platforms because compute resources are more modest there.
Richard Gaskin
LiveCode development, training, and consulting services: Fourth World Systems
LiveCode Group on Facebook
LiveCode Group on LinkedIn
LiveCode development, training, and consulting services: Fourth World Systems
LiveCode Group on Facebook
LiveCode Group on LinkedIn