private void handleNoteUri(Uri uri) { // We were triggered by an Intent URI TLog.d(TAG, "EditNote started: Intent-filter triggered."); // TODO validate the good action? // intent.getAction() // TODO verify that getNote is doing the proper validation note = NoteManager.getNote(this, uri); if(note != null) { title.SetText((CharSequence) note.getTitle()); noteContent = note.getNoteContent(noteContentHandler); } else { TLog.d(TAG, "The note {0} doesn't exist", uri); showNoteNotFoundDialog(uri); } }