@Override
    public void surfaceCreated(SurfaceHolder holder) {
      surfaceAvailable = true;
      tryToStart();
    }
Callback class for the Surface Holder
java/com/google/android/apps/authenticator/barcode/preview/CameraSourcePreview.java