Issue with custom realm directory setup
See original GitHub issueI tried to set custom directory with realm configuration in android. While accessing the path, its simply returning default canonical path.
Is my data saved in custom path or in default path? Please some one help, how to setup custom path to save data?
Expected Results
To know where my data saved
Actual Results
Need to save my data in custom path
Code Sample
Realm.init(this); String path = getFilesDir().getPath(); File realmFile = new File(path); RealmConfiguration realmConfiguration = new RealmConfiguration .Builder() .directory(realmFile) .name(“appname.realm”) .deleteRealmIfMigrationNeeded() .build(); Realm.setDefaultConfiguration(realmConfiguration); Logger.d(“Realm Migration Config Success”, Realm.getDefaultConfiguration().getPath());//Error returning path
Your code here. Bigger samples should ideally be as separate Android Studio project, in gists/repositories or privately at help@realm.io)
#### Version of Realm and tooling
Realm version(s): 4.2.0
Realm sync feature enabled: yes/no
Android Studio version: 3.0
Which Android version and device: ?
Issue Analytics
- State:
- Created 6 years ago
- Comments:10 (5 by maintainers)

Top Related StackOverflow Question
Issue seems to be due to the changes happening as part of the MDM wrapping process. We are checking this further and will post a note once we have some findings.
@saravanakumarimpiger Any updates for this issue? Did you get any response from MDM?