code: public void updateDialogMsg(final int resId) {
          if (dialog != null) {
              this.dialog.setMessage(dialog.getContext().getText(resId));
          }
      }
docs: Change the message in progress dialog
  
  @param resId