Android Question Android 13 and /mnt/sdcard

Sergey_New

Well-Known Member
Licensed User
Longtime User
This code worked on Android 12(checked on emulator):
B4X:
Dim lst As List = File.ListFiles("/mnt/sdcard")
An error occurs on Android 13(checked on the device).
Please help me fix it.
 
Last edited:

Sergey_New

Well-Known Member
Licensed User
Longtime User
Thank you, I read this.
My knowledge of Android is not enough to implement the necessary permissions in the manifest. I have it set in my manifest:
B4X:
AddPermission(android.permission.ACCESS_NETWORK_STATE)
AddPermission(android.permission.WRITE_EXTERNAL_STORAGE)
AddPermission(android.permission.READ_CONTACTS)
 
Upvote 0
Top