Code example for Camera

Methods: setOneShotPreviewCallback

0
   */ 
  public synchronized void requestOcrDecode(Handler handler, int message) {
    Camera theCamera = camera;
    if (theCamera != null && previewing) {
      previewCallback.setHandler(handler, message);
      theCamera.setOneShotPreviewCallback(previewCallback);
    } 
  } 
   
  /** 
   * Asks the camera hardware to perform an autofocus. 
   * @param delay Time delay to send with the request 
   */ 
  public synchronized void requestAutoFocus(long delay) {
  	autoFocusManager.start(delay);
  } 
   
  /** 
   * Calculates the framing rect which the UI should draw to show the user where to place the 
   * barcode. This target helps with alignment as well as forces the user to hold the device 
   * far enough away to ensure the image will be in focus.