When you use the Externalstorage Library and summon the SelectDIR event, it will open a dialog box that allows the user to determine the virtual folder that the application can always access without asking the user to select the folder again, unless the folder or application is deleted.
In the Externalstorage example I added a button to read the created folder named "123".
B4X:
Private Sub Button1_Click
Dim lstFiles As List = File.ListFiles(File.DirRootExternal & "/123")
ToastMessageShow("Number of files: " & lstFiles.Size, True)
End Sub
Regardless of whether there are files in this folder, lstFiles.Size=0.
What did I do wrong?