private void setUpNoteFromDatabase(Intent intent) {
    long id = intent.getLongExtra(EXTRA_NOTE_ID, 1);
    Log.d(TAG, "Got ID " + id + " from intent extra");

    note = noteProvider.getNote(id);
    Log.d(TAG, "Retrieved the following Note from the database: " + note.toString());

    if (note.getTitle().equals(PLACEHOLDER_TEXT_FOR_DATABASE)) {
      note.setTitle("");
    }
    if (note.getBody().equals(PLACEHOLDER_TEXT_FOR_DATABASE)) {
      note.setBody("");
    }

    titleEditText.setText(note.getTitle());
    bodyEditText.setText(note.getBody());

    noteExistsInDatabase = true;
  }