Android Realm – Database Configuration

Realm Database Configuration Example in Android and Java

— A Realm is an instance of a Realm Mobile Database container.
— Default Realm configuration uses the Realm file “default.realm” located in Context.getFilesDir().
— To use another configuration, you would create a new RealmConfiguration object.
— The RealmConfiguration can be saved as a default configuration.
— Setting a default configuration in your custom Application class makes it available in rest of your code.