Hints to speed up launch- SOLVED!
Posted: Mon Dec 20, 2021 7:44 am
Hi Everyone,
OK I have got the test button working and can "test" my app on my device.
I am using a splash stack to provide a non=blank screen during startup.
But still, there is a minute of looking at it before the main stack opens.
I placed a spinner widget on the splash stack and it stops after just a few seconds making me think the other stack is launching (I used the lesson script to send the Open Stack command after 2 secs)
I have tried breakpoints in the OpenStack handler of the main stack to try and see via the debugger what is going on but I have yet to get the remote debug working (yes it is included) I also have a few "Answer" calls in my handlers to know when they are being called (given I can't get the remote debug working, but even these aren't being called.
My app does open after about 150 secs but has obviously skipped a few handlers as the controls are misplaced.
So I guess I am after some ideas as to what could be slowing things down so much.
on opening the main stack I read in some custom properties to set up some arrays, read a text file (maybe 1000 characters) and then just put one of the array entries into a field on the first card (there are only three cards).
All pretty trivial, yet confounding.
Are there things I shouldn't do in the OpenStack or opencard handlers
OK I have got the test button working and can "test" my app on my device.
I am using a splash stack to provide a non=blank screen during startup.
But still, there is a minute of looking at it before the main stack opens.
I placed a spinner widget on the splash stack and it stops after just a few seconds making me think the other stack is launching (I used the lesson script to send the Open Stack command after 2 secs)
I have tried breakpoints in the OpenStack handler of the main stack to try and see via the debugger what is going on but I have yet to get the remote debug working (yes it is included) I also have a few "Answer" calls in my handlers to know when they are being called (given I can't get the remote debug working, but even these aren't being called.
My app does open after about 150 secs but has obviously skipped a few handlers as the controls are misplaced.
So I guess I am after some ideas as to what could be slowing things down so much.
on opening the main stack I read in some custom properties to set up some arrays, read a text file (maybe 1000 characters) and then just put one of the array entries into a field on the first card (there are only three cards).
All pretty trivial, yet confounding.
Are there things I shouldn't do in the OpenStack or opencard handlers