Hi everyone,
I'm having a problem with the bits of code being called in Activity_Create before others. I won't post the full code here but put in an example, basically the sequence is :-
- Set the Background Image
- Show a MessageBox
- Load the Database
Here is the code:-
Sub Activity_Create(FirstTime As Boolean)
Activity.SetBackgroundImage(LoadBitmap(File.DirAssets, "bg.png"))
ProgressDialogShow("Loading Database - please wait")
SQL.Initialize(File.DirInternal,dbName,True)
loadDatabase(dbName) 'my own internal function
ProgressDialogHide
End Sub
this code works fine, however the problem is that the background image is never set, and the progressdialogshow is never shown until the database has been loaded in. As a result its just a blank page for the first 30 seconds or so of the app.
Can anyone tell me how I can force the ordering please? Many thanks!