Deploying SQLite database with Delphi application on Android


I’m having some trouble with adding SQLite database into my Android application written in Delphi. First, I have added the database file into the project manager and in deployment manager changed its Remote Path to .\assets\internal\. Then I have added the following code into FDConnection BeforeConnect event. The code is:

MissiledbConnection.Params.Values[‘ColumnMetadataSupported’] := ‘False’;
MissiledbConnection.Params.Values[‘Database’] :=
TPath.Combine(TPath.GetDocumentsPath, ‘MissileDB.db’);

Despite that, I’m still getting this error while trying to compile Android version of my application:
[FireDAC][Stan][Def]-254. Definition [MissileDB.db] is not found in []

When I compile my application under Windows, everything works perfectly fine. I honestly have no idea what I’m doing wrong, since every tutorial I’ve found only mentions the Deployment manager and the event code, which I implemented as I shown.

Thank you in advance for your help.

Comments are closed.