Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
Initialize Realm in Application
public class MyApplication extends Application {
@Override
public void onCreate() {
super.onCreate();
RealmConfiguration config = new RealmConfiguration.Builder(context).build();
Realm.setDefaultConfiguration(config);
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment