In NotesActivity.java add constant EDITOR_ACTIVITY_REQUEST and use it instead of CREATE_REQUEST_CODE.
Add comment
In NoteEditorActivity.java override onBackPressed()