I have two applications that both use the camera:
- A flashlight app I have developed
- The camera app
The flashlight app opens the camera, turns on the flash, and runs in the background. However, if you start the camera app while the flashlight is on, there is an error in the camera app since the camera is already in use by the flashlight app:
Can't obtain device
In the flashlight app, how can I release the camera when another app requests it?