Creating cocuhbase lite files in app data folder

i want to create couchbase lite files in user`s app data folder.
Right now it creates file in the application folder.
i am creating db with following code:
Manager manager = new Manager(new JavaContext(“data”), Manager.DEFAULT_OPTIONS);
Manager.enableLogging(“Sync”, Log.VERBOSE);
final Database db = manager.getDatabase(“my_db”);

Hi @zeeshan_niazi,

I’m assuming that you’re using the Java SDK.
From looking at the JavaContext class, the cblite file will be created in data/data/com.couchbase.lite.test/files/{app directory}/dbname.cblite from where the app is running.

The parameter in the constructor sets the app directory.

I don’t see any reference to an application folder in the default behaviour of the JavaContext. Can you explain a little bit more your issue. Thanks

James

issue is this, right now i am unable to refer to appData folder.
how can i refer to appData folder.
i want to store my lite db on the following location:
C:\Users\username\AppData\Roaming\myAppz\data\data\com.couchbase.lite.test\files\

HI @jamiltz,
issue is this, right now i am unable to refer to appData folder.
how can i refer to appData folder.
i want to store my lite db on the following location:
C:\Users\username\AppData\Roaming\myAppz\data\data\com.couchbase.lite.test\files\