Android Question Wait progress bar

Erel

B4X founder
Staff member
Licensed User
Longtime User
It doesn't work because you have put it in the wrong place. The long loop is in StartIC_Click.

You need to add it there:
B4X:
For i = 0 To 10000
   Log(i)
   NOISE.NoiseNext
   If NOISE.Interrotto Then
     Exit
   End If
   If i Mod 500 = 0 Then Sleep(0)
Next

With that said, your code looks wrong and more complex than it should be.

Why are you calling NoiseNext from the loop? It is called by the timer.
 
Upvote 0

DonManfred

Expert
Licensed User
Longtime User
Upvote 0
Top