After a recent update (targetSdkVersion="33" from "31") some newer tablets (eg Android version 13) are listing sub-directory names but not the files within a folder. Older tablets (Android version 10) seem to be OK. The permission bit and the folder name are working fine, as evidenced by the sub-directory folder names being visible and correct. I do not have any filter on the file names.
My code includes:
My code includes:
FileDialog:
Dim fd As FileDialog
fd.FastScroll = True
Starter.rp.CheckAndRequest(Starter.rp.PERMISSION_WRITE_EXTERNAL_STORAGE)
Wait For Activity_PermissionResult (Permission As String, Result As Boolean)
Log("Result after Wait (" & Permission & " = " & Result)
If Result Then
Starter.ExternalStorageAllowed = True
Else
Starter.ExternalStorageAllowed = False
End If
If Starter.ExternalStorageAllowed Then
If File.IsDirectory(File.DirRootExternal, "Download") Then
fd.FilePath = File.DirRootExternal & "/Download/"
Log("1 fd = " & fd.FilePath)
Else
fd.FilePath = Starter.PathDrawings 'Change to Downloads
Log("2 fd = " & fd.FilePath)
End If
Else
fd.FilePath = Starter.PathDrawings
Log("3 fd = " & fd.FilePath)
End If
Dim ret As Int
ret = fd.Show("Choose a file to load:", "Okay", "Cancel", "", Null)