public static boolean showDialog(final DialogType dialogType) {
        DialogStatus showStatus;

        if (dialogType.defaultBehavior == DefaultBehavior.SHOW_ALWAYS || dialogType.defaultBehavior == DefaultBehavior.SHOW_ONLY_AFTER_UPGRADE) {
            // on a fresh install, the default show behavior will be overwritten (see initializeOnFreshInstall())
            showStatus = DialogStatus.DIALOG_SHOW;
        } else {
            showStatus = DialogStatus.DIALOG_HIDE;
        }

        final DataStore.DBExtension temp = load(type, dialogType.name());
        if (null != temp) {
            final OneTimeDialogs dialog = new OneTimeDialogs(temp);
            final DialogStatus status = getStatusById((int) dialog.getLong1());
            if (status != DialogStatus.NONE) {
                showStatus = status;
            }
        }

        return showStatus == DialogStatus.DIALOG_SHOW;
    }
returns whether the one time dialog should be shown
main/src/main/java/cgeo/geocaching/storage/extension/OneTimeDialogs.java