Android Question SQLiteLight3 Example: How can I view where the db persons.db is saved on the phone?

Batman_

Member
Licensed User
SQLiteLight3 Example: How can I view where the db persons.db is saved on the phone? I have run the example program and would like to be able to see the file persons.db on the phone using a file explorer.

Thanks in advance,
Batman_
 

klaus

Expert
Licensed User
If you look at the code in the Starter module you see that line:
SQLDataBasePath = File.DirInternal
This is the path where the database is located.
In the example, it's File.DirInternal which is an internal folder only accessible by the application.
If you want to have access to the database with other applications you need to copy it somewhere else.
In that case, you need authorisations with newer Android versions.
You can search in the forum or have a look at Erel's video B4A Runtime Permissions.
Or use RuntimePermissions.GetSafeDirDefaultExternal from the RuntimePermissions library.
 
Top