Hi All,
My primary problem is that my App is slow to launch [1.5 - 2 Secs]. I have assumed that this is due to a lot of work in the Designer Script associated with Activity.LoadLayout("Portrait"). [Over 250 lines]
I have attempted to give the user the impression that the App has started by firing up a Splash Screen Activity.LoadLayout("Splash")
To create the Splash Screen I have followed the:
Android Tutorial How to make a simple splash scree (that you can understand) Tutorial Link
The code below is intended to load/display the Splash Screen while the Script is working on the other layout.
The problem is that there is no sign of the Splash Screen.
First question.
Is my initial assumption that the slow start is due to the time taken to run the script file for "Portrait" layout valid?
Second question.
Why don't I see the Splash Screen?
Thanks in advance.
Regards Roger
My primary problem is that my App is slow to launch [1.5 - 2 Secs]. I have assumed that this is due to a lot of work in the Designer Script associated with Activity.LoadLayout("Portrait"). [Over 250 lines]
I have attempted to give the user the impression that the App has started by firing up a Splash Screen Activity.LoadLayout("Splash")
To create the Splash Screen I have followed the:
Android Tutorial How to make a simple splash scree (that you can understand) Tutorial Link
The code below is intended to load/display the Splash Screen while the Script is working on the other layout.
B4X:
Sub Activity_Create(FirstTime As Boolean)
'Display Splash layout
Activity.LoadLayout("Splash")
SplashPanel.BringToFront
SplashPanel.Visible=True
plashTimer.Initialize("SplashTimer", 2000) 'splash screen - title screen - 2 secs
SplashTimer.Enabled=True
Activity.LoadLayout("Portrait")
Canvas1.Initialize(Activity)
MP.Initialize2("MP")
other stuff etc.
The problem is that there is no sign of the Splash Screen.
First question.
Is my initial assumption that the slow start is due to the time taken to run the script file for "Portrait" layout valid?
Second question.
Why don't I see the Splash Screen?
Thanks in advance.
Regards Roger