I want to load a progressshowdialog as the activity is started, then the 'sub showall' is called which loads a sql DB and displays two columns of labels with text and numbers. This sub might take 3-5 seconds.
But the dialog doesnt show until the sub is completed...obviously too late!
How should the dialog be used to load before the sub showall.
I tried putting it in the showall sub or as below in the Activity.create...neither worked
But the dialog doesnt show until the sub is completed...obviously too late!
How should the dialog be used to load before the sub showall.
I tried putting it in the showall sub or as below in the Activity.create...neither worked
B4X:
Sub Activity_Create(FirstTime As Boolean)
'Do not forget to load the layout file created with the visual designer. For example:
Activity.LoadLayout("LYShowTrn")
Activity.Title = "All account transactions"
ProgressDialogShow("...loading")
Dim p As Phone
p.SetScreenOrientation(0)
lblOBtot.Text = Main.BankOpeningBalanceFromSystem
ShowAll
ProgressDialogHide
End Sub