Android Kudan - 扩展ARActivity将停止工作系统相机手电筒(闪光灯)

时间:2018-02-08 04:49:41

标签: android flash android-camera2 3d-model kudan

我正在开发用于使用Marker构建3D模型增强现实对象的kudan SDK,所有这些都完美无缺,但是当我在同一ARActivity上构建Camera torch时,它将停止工作闪光灯,即使它将停止工作系统闪光灯(On / off来自系统小部件的火炬)

如果我将延伸Activity而不是ARActivity完全正常。

扩展Exception时抛出运行时ARActivity

02-08 10:15:32.631 7592-7592/techno.example.com.agumentation
 W/System.err: android.hardware.camera2.CameraAccessException:
 CAMERA_IN_USE (4): setTorchMode:1488: Torch for camera "0" is not
 available due to an existing camera user 02-08 10:15:32.631
 7592-7592/techno.example.com.agumentation W/System.err:     at
 android.hardware.camera2.CameraManager.throwAsPublicException(CameraManager.java:658)
 02-08 10:15:32.631 7592-7592/techno.example.com.agumentation
 W/System.err:     at
 android.hardware.camera2.CameraManager$CameraManagerGlobal.setTorchMode(CameraManager.java:878)
 02-08 10:15:32.631 7592-7592/techno.example.com.agumentation
 W/System.err:     at
 android.hardware.camera2.CameraManager.setTorchMode(CameraManager.java:51)

帮助解决这个问题会很棒。

谢谢。

0 个答案:

没有答案