Hello,
in an Activity (called main) I need to call another Activity (called esame) but this Activity needs some time to load (about 2 seconds) and I want to show something that tell "Loading..."
So, in Main I use this code
But ProgressDialogShow don't appeare.
I change the code in this mode:
but in this mode ProgressDialogShow appeare, but after 200ms disappear
Ok, now I think that I need to solve the problem inside "esame" activity, so I rename Sub Activity_Create in Sub LoadLayout and I add
but no solution
How can I solve it ??
Thanks
Sergio
in an Activity (called main) I need to call another Activity (called esame) but this Activity needs some time to load (about 2 seconds) and I want to show something that tell "Loading..."
So, in Main I use this code
B4X:
Sub pEsame_Click
ProgressDialogShow("Loading...")
StartActivity("esame")
End Sub
But ProgressDialogShow don't appeare.
I change the code in this mode:
B4X:
Sub pEsame_Click
Sleep(200)
ProgressDialogShow("Loading...")
StartActivity("esame")
End Sub
but in this mode ProgressDialogShow appeare, but after 200ms disappear
Ok, now I think that I need to solve the problem inside "esame" activity, so I rename Sub Activity_Create in Sub LoadLayout and I add
B4X:
Sub Activity_Create(FirstTime As Boolean)
ProgressDialogShow("Attendi...")
CallSubDelayed(Me, "CaricaLayout")
End Sub
but no solution
How can I solve it ??
Thanks
Sergio