preferred method for Android Splash screen

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

Moderators: FourthWorld, heatherlaine, Klaus, kevinmiller, robinmiller

Post Reply
jameshale
VIP Livecode Opensource Backer
VIP Livecode Opensource Backer
Posts: 474
Joined: Thu Sep 04, 2008 6:23 am
Location: Melbourne Australia

preferred method for Android Splash screen

Post by jameshale » Mon Nov 29, 2021 7:29 am

Looking at the lessons I see there are two suggested methods for providing a splash screen for Android apps.

My current attempt to compile an Android app takes 30 secs to load on the simulator.
During this time the screen is black.

So method (1) is to simply have a splash stack that calls the main stack
Method (2) is to have the first card of your stack as the splash screen.
Is there an advantage to one over the other?

Method (1) doesn't require much in the way of scripting but does require two stacks,
Method (2) only one stack but does the whole stack still have to load before card 1 is seen?

or are they both pretty much the same.

mrcoollion
Posts: 719
Joined: Thu Sep 11, 2014 1:49 pm
Location: The Netherlands

Re: preferred method for Android Splash screen

Post by mrcoollion » Mon Nov 29, 2021 12:02 pm

Having a stack as splashscreen that calls the mainstack stack offers a way to update your application via the splashscreen stack?!

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

Re: preferred method for Android Splash screen

Post by jacque » Mon Nov 29, 2021 7:08 pm

The whole stack loads before the first card is drawn, so the smaller the stack, the shorter the load time.
Jacqueline Landman Gay | jacque at hyperactivesw dot com
HyperActive Software | http://www.hyperactivesw.com

jameshale
VIP Livecode Opensource Backer
VIP Livecode Opensource Backer
Posts: 474
Joined: Thu Sep 04, 2008 6:23 am
Location: Melbourne Australia

Re: preferred method for Android Splash screen

Post by jameshale » Tue Nov 30, 2021 12:15 am

oh well tried both methods
splash screen appears quickly and then some 30 secs later the main stack appears but then for some reason it is unable to complete it usual object positioning.
If I do not use a splash screen everything is positioned correctly (controls in corners of screen)
with splash screen no corner controls at all!
So I will leave the splash screen ide for a while :(

Post Reply

Return to “Android Deployment”