Hi
I have :
The ProgressBar doesnot show progress ... ???
I have :
B4X:
Sub Globals
Dim Maximo As Int
Dim ProgressBar1 As ProgressBar
End Sub
Sub Activity_Create(FirstTime As Boolean)
Activity.LoadLayout("Main")
ProgressBar1.Initialize("ProgressBar1")
End Sub
Sub Button1_Click
Dim fileliste As List
fileliste = File.ListFiles(File.DirRootExternal & "/tmp")
Maximo = fileliste.Size - 1
For i = 0 To fileliste.Size - 1
If i Mod Maximo = 0 Then
ProgressBar1.Progress = i/Maximo*100
DoEvents
End If
Next
activity.Finish
End Sub