public SimpleDialog setButtons(@StringRes final int... buttonIds) {
        final TextParam[] buttonTps = new TextParam[buttonIds.length];
        for (int idx = 0; idx < buttonIds.length; idx++) {
            buttonTps[idx] = buttonIds[idx] == 0 ? null : TextParam.id(buttonIds[idx]);
        }
        return setButtons(buttonTps);
    }
Up to three parameters will be processed. First is positive button, second is negative button, third is neutral button
main/src/main/java/cgeo/geocaching/ui/dialog/SimpleDialog.java