Android splash

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

Moderators: Klaus, FourthWorld, heatherlaine, kevinmiller, robinmiller

Post Reply
EddieLee
Posts: 88
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

jacque
VIP Livecode Opensource Backer
VIP Livecode Opensource Backer
Posts: 5600
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: 485
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

http://2108.co.uk/tinyide/ - Mini LC IDE alternative

http://2108.co.uk/script-editor-themer/ - Script Editor colour theming

http://livecodeshare.runrev.com/stack/897/LiveCode-Multi-Search - Search across 8 LC resources

FourthWorld
VIP Livecode Opensource Backer
VIP Livecode Opensource Backer
Posts: 8008
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
Community volunteer LiveCode Community Liaison

LiveCode development, training, and consulting services: Fourth World Systems: http://FourthWorld.com
LiveCode User Group on Facebook : http://FaceBook.com/groups/LiveCodeUsers/

AndyP
Posts: 485
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

http://2108.co.uk/tinyide/ - Mini LC IDE alternative

http://2108.co.uk/script-editor-themer/ - Script Editor colour theming

http://livecodeshare.runrev.com/stack/897/LiveCode-Multi-Search - Search across 8 LC resources

jacque
VIP Livecode Opensource Backer
VIP Livecode Opensource Backer
Posts: 5600
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: 8008
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
Community volunteer LiveCode Community Liaison

LiveCode development, training, and consulting services: Fourth World Systems: http://FourthWorld.com
LiveCode User Group on Facebook : http://FaceBook.com/groups/LiveCodeUsers/

Post Reply

Return to “Android Deployment”