Last active
September 5, 2016 03:58
-
-
Save alhazmy13/dd15eb114b2242c761e248c6c8140836 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
// Create a RealmConfiguration that saves the Realm file in the app's "files" directory. | |
RealmConfiguration realmConfig = new RealmConfiguration.Builder(context).build(); | |
Realm.setDefaultConfiguration(realmConfig); | |
// Get a Realm instance for this thread | |
Realm realm = Realm.getDefaultInstance(); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment