private void inputExecuteChecker(final AlertDialog dialog, final Predicate<String> inputChecker, final CharSequence text) {
        if (dialog == null || inputChecker == null) {
            return;
        }
        final String realText = text == null ? "" : text.toString();
        final boolean checkPassed = inputChecker.test(realText);
        if (positiveButton != null) {
            dialog.getButton(DialogInterface.BUTTON_POSITIVE).setEnabled(checkPassed);
        }
    }
Use this method to create and display an 'input' dialog using the data defined before using this classes' setters
<p>
An 'input' dialog allows the user to enter a value.
main/src/main/java/cgeo/geocaching/ui/dialog/SimpleDialog.java