Jump to content
Sign in to follow this  

Correct way to set database path for assets/external

Recommended Posts

Delphi 10.4.2


I want to use assets/external when deploying a database file to an Android device.  The device doesn't actually have any external storage (sd card) so the installation auto creates a ./external directory in the internal app directory.  What is the correct way to set the database path.  Documentation says to use 'TPath.Combine(TPath.GetSharedDocumentsPath,'database.db') when using assets/external yet when I use this the app cannot find the database file. 


Can someone please advise me as to where I am going wrong with this.


Thanks in advance



Share this post

Link to post

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
Sign in to follow this