app/src/main/java/com/demo/selfqrcode/CaptureActivity.java
/**
   * A valid barcode has been found, so give an indication of success and show the results.
   *
   * @param rawResult The contents of the barcode.
   * @param barcode   A greyscale bitmap of the camera data which was decoded.
   */
A valid barcode has been found, so give an indication of success and show the results.
@param rawResult The contents of the barcode.
@param barcode   A greyscale bitmap of the camera data which was decoded.
A valid barcode has been found so give an indication of success and show the results . @param rawResult The contents of the barcode . @param barcode A greyscale bitmap of the camera data which was decoded .
public void handleDecode(Result rawResult, Bitmap barcode) {
    inactivityTimer.onActivity();
    boolean fromLiveScan = barcode != null;
    if (fromLiveScan) {
      beepManager.playBeepSoundAndVibrate();
      viewfinderView.drawResultBitmap(barcode);
    }
    doResult(rawResult);
  }
public void handleDecode ( Result rawResult , Bitmap barcode ) { inactivityTimer . onActivity ( ) ; boolean fromLiveScan = barcode != null ; if ( fromLiveScan ) { beepManager . playBeepSoundAndVibrate ( ) ; viewfinderView . drawResultBitmap ( barcode ) ; } doResult ( rawResult ) ; }
A valid barcode has been found, so give an indication of success and show the results.
A valid barcode has been found so give an indication of success and show the results .
// Then not from history, so beep/vibrate and we have an image to draw on