Hi i have a B4J app that unzips multiple files, and i wanted to show the progress but the indicator doesn't update until the end
The Selection_Progress_ind is added in designer so i didn't initialize, and the sub OpenZipGetFile is called for a for next loop that runs through all the files selected.
The Progress Indicator remains empty until all of the files have been unzipped and then reports 100%.
Any help is appreciated.
Regards
Stu
B4X:
Private selection_progress_ind as ProgressIndicator
Sub OpenZipGetFile(fn as string,perc as double)
selection_progress_ind.visible = true
selection_progress_ind.progress = (perc/100)
If File.Existis(File.GetFileParent(fn),File.GetName(fn)) Then
Zip.ABUnzip(fn,tempDir)
Else
Log("No File: " & fn)
End If
End Sub
The Selection_Progress_ind is added in designer so i didn't initialize, and the sub OpenZipGetFile is called for a for next loop that runs through all the files selected.
The Progress Indicator remains empty until all of the files have been unzipped and then reports 100%.
Any help is appreciated.
Regards
Stu