Android Realm – Initialize Database

Initialize Realm Database Example in Android and Java

— Before you can use Realm in your application, you must initialize it.
— This only has to be done once using method Realm.init(context);
— A good place to initialize Realm is in onCreate method of an application subclass.
— If you create your own application subclass, you must add it to the AndroidManifest.xml