In NotesActivity.java override onActivityResult() to update note, which writes changes to persistent storage.