Hi, I am trying to read the content of the Download folder in the internal memory, without success. I followed the guidelines for runtimepermissions, I added the permissions in the manifest:
I also asked for permission to write, I grant it, but File.ListFiles returns an uninitialised list, what supposedly means that the folder is not accesible
Could you help me, please?
B4X:
AddPermission(android.permission.READ_EXTERNAL_STORAGE)
AddPermission(android.permission.WRITE_EXTERNAL_STORAGE)
I also asked for permission to write, I grant it, but File.ListFiles returns an uninitialised list, what supposedly means that the folder is not accesible
B4X:
Private rp As RuntimePermissions
rp.CheckAndRequest(rp.PERMISSION_WRITE_EXTERNAL_STORAGE)
Wait For Activity_PermissionResult (Permission As String, Result As Boolean)
If Result <> False Then
Dim arch As List
arch = File.ListFiles(File.Combine(File.DirRootExternal, "Download"))
If arch.IsInitialized Then
...
Could you help me, please?