Created
January 23, 2017 13:30
-
-
Save calindotgabriel/08ce25ba1bdbcbd4bd9092760c6d9e55 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(); | |
RealmConfiguration realmConfiguration = new RealmConfiguration.Builder(this) | |
.name(Realm.DEFAULT_REALM_NAME) | |
.schemaVersion(0) | |
.deleteRealmIfMigrationNeeded() | |
.build(); | |
Realm.setDefaultConfiguration(realmConfiguration); | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment