Code example for Camera

Methods: setPreviewCallbackstopPreview

   * Tells the camera to stop drawing preview frames. 
  public void stopPreview() { 
    if (camera != null && previewing) {
      if (!useOneShotPreviewCallback) {
      previewCallback.setHandler(null, 0);
      autoFocusCallback.setHandler(null, 0);
      previewing = false;
   * A single preview frame will be returned to the handler supplied. The data will arrive as byte[] 
   * in the message.obj field, with width and height encoded as message.arg1 and message.arg2, 
   * respectively. 
   * @param handler The handler to send the message to. 
Connect your IDE to all the code out there  Get Codota for Java