OCRTest/src/main/java/edu/sfsu/cs/orange/ocr/CaptureActivity.java
void showErrorMessage(String message) {
    new AlertDialog.Builder(this).setTitle("Error")
            .setMessage(message)
            .setOnCancelListener(new FinishListener(this))
            .setPositiveButton("Done", new FinishListener(this))
            .show();
  }
/**
   * Displays an error message dialog box to the user on the UI thread.
   *
   * @param message The error message to be displayed
   */
Displays an error message dialog box to the user on the UI thread.

@param message The error message to be displayed
Displays an error message dialog box to the user on the UI thread . @param message The error message to be displayed
void showErrorMessage(String message) {
    new AlertDialog.Builder(this).setTitle("Error")
            .setMessage(message)
            .setOnCancelListener(new FinishListener(this))
            .setPositiveButton("Done", new FinishListener(this))
            .show();
  }
void showErrorMessage ( String message ) { new AlertDialog . Builder ( this ) . setTitle ( "Error" ) . setMessage ( message ) . setOnCancelListener ( new FinishListener ( this ) ) . setPositiveButton ( "Done" , new FinishListener ( this ) ) . show ( ) ; }
Displays an error message dialog box to the user on the UI thread.
Displays an error message dialog box to the user on the UI thread .