Last active
May 10, 2017 11:18
-
-
Save Bambina-zz/3bab0ca31b5c729605df5c7aa403961b to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
public class MyApplication extends Application { | |
@Override | |
public void onCreate(){ | |
super.onCreate(); | |
Realm.init(getApplicationContext()); | |
RealmConfiguration c = new RealmConfiguration.Builder().build(); | |
// Use below if you are in the middle of development and changing your schema. | |
// RealmConfiguration config = new RealmConfiguration.Builder().deleteRealmIfMigrationNeeded().build(); | |
Realm.setDefaultConfiguration(c); | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment