2

I am working on kudan SDK for building 3D Model Augment Reality Object with Marker, all are perfectly works fine,but when i build Camera torch on same ARActivity will stop working flash light, even it will stop working system flash torch (On/off torch from system widgets)

if in case i will extends Activity not ARActivity works perfectly fine.

Throw Run-time Exception when extends 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)

It would great to helping for solving this issue.

Thank you.

ND1010_
  • 2,848
  • 16
  • 33
  • @NileshRathod i have worked same thing with Camera2 class and Camera class(Deprecated form api 21) it will not work and yup please read question properly you got the issue what i facing right now – ND1010_ Feb 08 '18 at 06:02
  • It will throw Exception when i Extends ARActivity – ND1010_ Feb 08 '18 at 06:03
  • did you found any solution for this? – naima Dec 06 '19 at 10:14
  • May be yes i wad found the solution that time but i dont remember right now, but i will send that solution soon – ND1010_ Dec 07 '19 at 06:16

0 Answers0