I'm currently working on an app and I want to show an animated logo at the start before the main menu is displayed.
To keep things neat and tidy (and so I can also reuse the logo code easily in future apps) I've created seperate activities for the menu and the startup logo.
So, in activity 'Main' I've got this bit of code.
Sub Activity_Create(FirstTime As Boolean)
StartActivity("AppStartLogo")
StartActivity("MainMenu")
End Sub
The problem is it seems that the 'MainMenu' activity is started immediately after the 'AppStartLogo' activity.
So instead of my animated logo displaying for 5 seconds and then the menu being displayed the menu appears to be shown straight away and then when I select exit (button5_click with activity.finish) the 'AppStartLogo' activity is then shown.
I assumed that in 'Main' it would start the logo activity and would then start the menu activity after activity.finish ended the activity and returned the flow to main. I'm realising this is not the case.
So.... how do I ask 'Main' to wait until 'AppStartLogo' has finished before starting 'MainMenu'. A timer (not too keen on that but....) or a loop with the escape being a check on the status of an activity??
Maybe I'm being too fussy by giving the startup logo it's own activity (could just have it in Main I suppose) but any help would be appreciated.