Android splash

The place to discuss anything and everything about running your LiveCode on Android

Moderators: FourthWorld, heatherlaine, Klaus, kevinmiller, robinmiller

Post Reply
EddieLee
Posts: 118
Joined: Thu Oct 25, 2018 1:06 pm

Android splash

Post by EddieLee » Fri Sep 11, 2020 3:38 pm

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
Eddie :D

jacque
VIP Livecode Opensource Backer
VIP Livecode Opensource Backer
Posts: 7230
Joined: Sat Apr 08, 2006 8:31 pm
Location: Minneapolis MN
Contact:

Re: Android splash

Post by jacque » Sat Sep 12, 2020 6:16 pm

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

AndyP
Posts: 615
Joined: Wed Aug 27, 2008 12:57 pm
Location: Seeheim, Germany (ex UK)
Contact:

Re: Android splash

Post by AndyP » Sat Sep 12, 2020 6:36 pm

Also I've found on Android, avoid having any code in a preOpenStack handler
Andy Piddock
https://livecode1001.blogspot.com Built with LiveCode
https://github.com/AndyPiddock/TinyIDE Mini IDE alternative
https://github.com/AndyPiddock/Seth Editor color theming
http://livecodeshare.runrev.com/stack/897/ LiveCode-Multi-Search

FourthWorld
VIP Livecode Opensource Backer
VIP Livecode Opensource Backer
Posts: 9833
Joined: Sat Apr 08, 2006 7:05 am
Location: Los Angeles
Contact:

Re: Android splash

Post by FourthWorld » Sat Sep 12, 2020 7:04 pm

AndyP wrote:
Sat Sep 12, 2020 6:36 pm
Also I've found on Android, avoid having any code in a preOpenStack handler
What did you try that didn't work out as expected?
Richard Gaskin
LiveCode development, training, and consulting services: Fourth World Systems
LiveCode Group on Facebook
LiveCode Group on LinkedIn

AndyP
Posts: 615
Joined: Wed Aug 27, 2008 12:57 pm
Location: Seeheim, Germany (ex UK)
Contact:

Re: Android splash

Post by AndyP » Sat Sep 12, 2020 7:13 pm

FourthWorld wrote:
Sat Sep 12, 2020 7:04 pm
AndyP wrote:
Sat Sep 12, 2020 6:36 pm
Also I've found on Android, avoid having any code in a preOpenStack handler
What did you try that didn't work out as expected?
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.
Andy Piddock
https://livecode1001.blogspot.com Built with LiveCode
https://github.com/AndyPiddock/TinyIDE Mini IDE alternative
https://github.com/AndyPiddock/Seth Editor color theming
http://livecodeshare.runrev.com/stack/897/ LiveCode-Multi-Search

jacque
VIP Livecode Opensource Backer
VIP Livecode Opensource Backer
Posts: 7230
Joined: Sat Apr 08, 2006 8:31 pm
Location: Minneapolis MN
Contact:

Re: Android splash

Post by jacque » Sat Sep 12, 2020 8:08 pm

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.
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.
Jacqueline Landman Gay | jacque at hyperactivesw dot com
HyperActive Software | http://www.hyperactivesw.com

FourthWorld
VIP Livecode Opensource Backer
VIP Livecode Opensource Backer
Posts: 9833
Joined: Sat Apr 08, 2006 7:05 am
Location: Los Angeles
Contact:

Re: Android splash

Post by FourthWorld » Sat Sep 12, 2020 10:00 pm

AndyP wrote:
Sat Sep 12, 2020 7:13 pm
FourthWorld wrote:
Sat Sep 12, 2020 7:04 pm
AndyP wrote:
Sat Sep 12, 2020 6:36 pm
Also I've found on Android, avoid having any code in a preOpenStack handler
What did you try that didn't work out as expected?
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.
That will always be the case, on all platforms, since the pre* messages execute before rendering.

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

Post Reply

Return to “Android Deployment”