public synchronized boolean isShowing() {
        return dialog != null && dialog.isShowing();
    }
progress dialog wrapper for easier management of resources
main/src/main/java/cgeo/geocaching/activity/Progress.java