通过CameraManager的openCamera()方法打开相机,在CameraDevice.StateCallback的onOpened(CameraDevice camera)方法中可获得 CameraDevice 的实例。 示例: private int mCameraId = CameraCharacteristics.LENS_FACING_FRONT; private CameraManager mCameraManager; // 相机管理者 private CameraDevice mCameraDevice; // 相...