@Override
  protected void onProgressUpdate(String... message) {
    super.onProgressUpdate(message);
    int percentComplete = 0;

    percentComplete = Integer.parseInt(message[1]);
    dialog.setMessage(message[0]);
    dialog.setProgress(percentComplete);
    dialog.show();
  }
Update the dialog box with the latest incremental progress.

@param message
         [0] Text to be displayed
@param message
         [1] Numeric value for the progress
OCRTest/src/main/java/edu/sfsu/cs/orange/ocr/OcrInitAsyncTask.java