Livecode Forum,
I'm finishing up a mobile app for Android on Livecode V6.6.2 and I'm trying to improve the users start up experience. Has anyone else had to deal with this or is everyone just living with the delay. Here is what I'm finding.
Single Card App Size: 6.5M Boot Time: 1 second
Larger App Size: 14.5M Boot Time 3-5 seconds
During the boot time the users screen goes BLACK and it looks like the device has gone to sleep, but it is just the Livecode engine booting.
(Note: this is based on a dual core android phone with 16Meg of RAM, which is typically quite fast)
I would like to display a SPLASH image to the user during the boot time. This is an option in the settings, but only for non-commercial licenses.
I have done the following with no luck.
1> Created a single card and attempted to launch the main stack with a MODAL STACK call. Looks like this doesn't work on mobile or maybe I'm doing something wrong.
2> Created a splash card in the main app, but this card doesn't get displayed until the app starts so you still have the long BLACK screen.
Any suggestions?????
Thanks
Mobile App Boot Splash Page
Moderators: FourthWorld, heatherlaine, Klaus, kevinmiller, robinmiller
Re: Mobile App Boot Splash Page
How much code do you have in preOpenStack and preOpenCard?
Because of course that has to be processed before the stack is shown.
Simon
Edit Oh yes, I see I had that problem until I moved most of the stuff out of preOpenStack. Put it in a separate handler and did a send in 50 millisec in openStack (I forget I do these things). Mine was downloading a DB and such and made for a very slow start.
Because of course that has to be processed before the stack is shown.
Simon
Edit Oh yes, I see I had that problem until I moved most of the stuff out of preOpenStack. Put it in a separate handler and did a send in 50 millisec in openStack (I forget I do these things). Mine was downloading a DB and such and made for a very slow start.
I used to be a newbie but then I learned how to spell teh correctly and now I'm a noob!
-
- Posts: 87
- Joined: Tue Nov 13, 2007 6:40 pm
Re: Mobile App Boot Splash Page
Thanks Simon,
I removed everything from the preOpenStack and preOpenCard on the first card and the Load Time is still about the same.
I think it has to do with the time it takes to load the LiveCode app into memory on the device.
When I go to a new device the same stack loads in 2 seconds, so half the time.
I will put in an Enhancement request to be able display a Splash Screen on boot.
Thanks
Dan
I removed everything from the preOpenStack and preOpenCard on the first card and the Load Time is still about the same.
I think it has to do with the time it takes to load the LiveCode app into memory on the device.
When I go to a new device the same stack loads in 2 seconds, so half the time.
I will put in an Enhancement request to be able display a Splash Screen on boot.
Thanks
Dan
-
- VIP Livecode Opensource Backer
- Posts: 212
- Joined: Fri Feb 01, 2013 1:31 am
- Contact:
Re: Mobile App Boot Splash Page
Im curious as to what the solution to this is too. I have no preopencard, preopenstack, or openstack handlers and it still takes 20 seconds on my samsung galaxy tab 2.0
I need to figure this out.
-Will
I need to figure this out.
-Will