public static EditNoteDialog newInstance(final String initialNote, final boolean preventWaypointsFromNote, final boolean connectorSupportsUpload) {
        final EditNoteDialog dialog = new EditNoteDialog();

        final Bundle arguments = new Bundle();
        arguments.putString(ARGUMENT_INITIAL_NOTE, initialNote);
        arguments.putBoolean(ARGUMENT_INITIAL_PREVENT, preventWaypointsFromNote);
        arguments.putBoolean(ARGUMENT_INITIAL_UPLOAD_AVAILABLE, connectorSupportsUpload);
        dialog.setArguments(arguments);

        return dialog;
    }
Create a new dialog to edit a note.
<em>This fragment must be inserted into an activity implementing the EditNoteDialogListener interface.</em>

@param initialNote the initial note to insert in the edit dialog
main/src/main/java/cgeo/geocaching/ui/dialog/EditNoteDialog.java