Android Question Where are the file/s on my Samsung A31

RichardKirk

Member
Licensed User
Longtime User
I have a Samsung A31, with Android 10 and One UI version 2.1.

I have written a program to record information into a sqlite database.
Having tried for a long time (with no success) to access the database in a folder on the phone
that I could see, I followed the instructions re DirAssets and the program now works on the
phone. However, I cannot find the database via MyFiles or an brilliant app called "File Manager".

Does anyone have any suggestions to make?

Thanks in advance.......
 

roumei

Active Member
Licensed User
You could use GetSafeDirDefaultExternal to create a folder that you can easily access. The folder will be created under Android > data > your package name > files.
B4X:
Dim rp As RuntimePermissions ' Process_Globals
TrackExportDirectory = rp.GetSafeDirDefaultExternal("TrackExport") ' Create accessible folder

AppFolder.jpg
 
Upvote 0
Top