code: public synchronized void startPreview() {
      Camera theCamera = camera;
      if (theCamera != null && !previewing) {
        theCamera.startPreview();
        previewing = true;
        autoFocusManager = new AutoFocusManager(camera);
      }
    }
docs: Asks the camera hardware to begin drawing preview frames to the screen.