Android Question ExternalStorage

T201016

Active Member
Licensed User
Longtime User
Storage.SelectDir (True)
Wait For Storage_ExternalFolderAvailable

For Each f As ExternalFile In Storage.ListFiles (Storage.Root)
. . .

Hello everyone!
Recently, while testing the ExternalStorage library, I noticed that the file list is unsorted ...
How to sort a list of directories and files ?
 

DonManfred

Expert
Licensed User
Longtime User
B4X:
dim l as list = Storage.ListFiles (Storage.Root)
l.sort(true)
For Each f As ExternalFile In l
 
Upvote 0

T201016

Active Member
Licensed User
Longtime User
B4X:
dim l as list = Storage.ListFiles (Storage.Root)
l.sort(true)
For Each f As ExternalFile In l
Thank you @DonManfred
In general, I am also curious whether the time of sorting directories along with files on a USB stick will be a further problem to be solved on older phones.
 
Upvote 0
Top