How to on flash of android device in kotlin

I was try from long time its always crash the application.Actually i wanted to on flash

cameraManager.setTorchMode("0", true)

but its not working fine I always get this error

Torch for camera "0" is not available due to an existing camera user



Read more here: https://stackoverflow.com/questions/67382808/how-to-on-flash-of-android-device-in-kotlin

Content Attribution

This content was originally published by Jai at Recent Questions - Stack Overflow, and is syndicated here via their RSS feed. You can read the original post over there.

%d bloggers like this: