Created
August 10, 2016 16:53
-
-
Save mplacona/6f6190211dd0ea8152d1a1238a976053 to your computer and use it in GitHub Desktop.
Exploring the vastness of the Realm, a cross-platform mobile database
This file contains hidden or 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 Note extends RealmObject { | |
public String mText | |
} | |
Note note = new Note(); note.mText = "My awesome note"; | |
Realm realm = Realm.getDefaultInstance(); | |
realm.beginTransaction(); | |
realm.copyToRealm(note) | |
realm.commitTransaction(); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment