I have just started using the ExternalStorage class and have noticed it is very slow. Or am I doing something wrong?
The following line takes about 45s to execute on a Samsung Galaxy S8. (anExternalFile points to a folder with 1000 files.)
And the following takes another 45s to execute.
Is this to be expected? At least with the second example, I can add some sleep(0) and show a progress bar, but with the first example, the GUI locks up.
The following line takes about 45s to execute on a Samsung Galaxy S8. (anExternalFile points to a folder with 1000 files.)
B4X:
theFilesList=Storage.ListFiles(anExternalFile)
B4X:
For Each aFile As ExternalFile In theFilesList
If aFile.isfolder=False Then
End If
Next