Jump to content
PhxMarco

File install path in Android (Deployment Manager)

Recommended Posts

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

Have you tried in your deployment settings to set the remote path to:

  '.\databases'

 

Share this post


Link to post

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

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

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

×