Android Question How To Access External Files?

Big Dave

Member
Licensed User
Longtime User
I need to read an excel spreadsheet and create a sql database. I have achieved it before but I am porting the app to a new tablet with a newer android version and cannot find where I can locate the external file or what code changes are needed. Listing the file locations gives me:
DirDefaultExternal = /storage/emulated/0/Android/data/b4a.konnqa3/files
DirInternal = /data/user/0/b4a.konnqa3/files
DirRootExternal = /storage/emulated/0
I cannot find any of these locations on the tablet? Are there restrictions on accessing external files with the newer versions of Android.

Thanks in advance for any suggestions.
 

Alex_197

Well-Known Member
Licensed User
Longtime User
I need to read an excel spreadsheet and create a sql database. I have achieved it before but I am porting the app to a new tablet with a newer android version and cannot find where I can locate the external file or what code changes are needed. Listing the file locations gives me:
DirDefaultExternal = /storage/emulated/0/Android/data/b4a.konnqa3/files
DirInternal = /data/user/0/b4a.konnqa3/files
DirRootExternal = /storage/emulated/0
I cannot find any of these locations on the tablet? Are there restrictions on accessing external files with the newer versions of Android.

Thanks in advance for any suggestions.
It's not possible anymore since Android 11.
You need to connect your device with the USB cable to the computer and then you will be able to open a device as a network drive.
 
Upvote 0

DonManfred

Expert
Licensed User
Longtime User
Upvote 0

Big Dave

Member
Licensed User
Longtime User
Still trying to access external files. Trying to compile the ManageExternalStorage example but it is complaining about an unknown member ShowAsync as per the line below.
Dim fda As Object = fd.ShowAsync("B4A File Dialog", "OK", "Cancel", "", Bmp, False)
I believe this is something to do with Dialog2 library which I cannot find? Can someone point me in the right direction please.

Thanks.
 
Upvote 0
Top