PhxMarco 0 Posted January 20 Hello, I need install my Sqlite db file in a specific path of my industrial handheld: /data/user/0/com.acme.myapp/databases/DBSQLITE.db but in Deployment manager seems only possible install on .\assets\internal\ which result in a absolute path: /data/user/0/com.acme.myapp/files/DBSQLITE.db I tryed to change remote folder in '.\assets\internal\databases\' but after installation the file result located in com.acme.myapp/files/databases/ which is not com.acme.myapp/databases/ Is there any way to set the installation path as I need ? BR, Marco Share this post Link to post
DelphiUdIT 209 Posted January 20 Have you tried in your deployment settings to set the remote path to: '.\databases' Share this post Link to post
PhxMarco 0 Posted January 20 yes just done, but file location stay the same... To list the App folders I use TPath.GetDocumentsPath() and TPath.GetHomePath() which seems give the same path: /data/data/<application ID>/files To list the 'databases' folder there is no TPath method available, so I use tha Andrioid API databaseList: Context := TAndroidHelper.Context; DatabaseArray := Context.databaseList; which still empty, dispite other java made apps, where the db file are listed... Share this post Link to post
DelphiUdIT 209 Posted January 20 (edited) 2 hours ago, PhxMarco said: which seems give the same path: /data/data/<application ID>/files This is the right place, see: https://docwiki.embarcadero.com/Libraries/Athens/en/System.IOUtils.TPath.GetHomePath So your files go to on the home directory or in the subfolder of that like you see. Edited January 20 by DelphiUdIT Share this post Link to post
PhxMarco 0 Posted January 20 yes, I have seen and tested, but the Home path /data/data/<application ID>/files is the top higher level reachable; with Deployment manager seems not possible create or put files in /data/data/<application ID>/databases 😞 Share this post Link to post