ProgressDialogShow question

park jae hyun

Member
Licensed User
Longtime User
sub button1_click
ProgressDialogShow2("Please wait !............. ",True)
StartActivity("bmain")
end sub


1 .. The first question: the spin stops.
2 .. Second question: the source's getting longer, the loading Iong

Please help.
 
Last edited:

Amalkotey

Active Member
Licensed User
Longtime User
Hello park jae hyun,

can it be that the display ProgressDialogShow2 (...) but ProgressDialogHide is reached too quickly? I had this problem at the start of my program. The solution was to wait for 5 seconds. I have achieved this with

B4X:
Sub Wait(Sekunden As Int)
   Dim Ti As Long
   Ti = DateTime.Now + (Sekunden * 1000)
   Do While DateTime.Now < Ti
      DoEvents
   Loop
End Sub

The calling of the sub is done with

B4X:
Wait ( seconds )

best regards
Amalkotey
 
Upvote 0

park jae hyun

Member
Licensed User
Longtime User
help

Source is a long program will take 3 seconds to load.
So ....
Show black screen while changing the screen is visible.
Please tell me another way
 
Upvote 0
Top