Created
August 10, 2016 18:40
-
-
Save mplacona/9c3b3261d0dfd07458a2b13ddabf9b18 to your computer and use it in GitHub Desktop.
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
private void insertNote(final String noteText) { | |
mRealm.executeTransaction(new Realm.Transaction() { | |
@Override | |
public void execute(Realm realm) { | |
Note note = new Note(); | |
note.setText(noteText); | |
mRealm.copyToRealm(note); | |
} | |
}); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment