public synchronized void setMessage(final String message) {
        if (dialog != null && dialog.isShowing()) {
            dialog.setMessage(message);
        }
    }
progress dialog wrapper for easier management of resources
main/src/main/java/cgeo/geocaching/activity/Progress.java