Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Is there a way to find out which app has the camera locked?

In our app we're using camera to scan QR codes. I got a few crashes on the dev console saying "fail to connect to camera service". Reading around I found out it is possible that another app has the camera opened and didn't call release() onPause (I tested this is possible with a simple app that behaves like this). I already made an error message for the user instead of crash however I'd like to point the user to the app that is blocking access to camera. Is something like this possible or the best I can do is "please exit any applications that might be using the camera and try again"?

like image 812
ciny Avatar asked Jan 17 '26 02:01

ciny


1 Answers

Unfortunately, this is not currently possible.

like image 71
Eddy Talvala Avatar answered Jan 19 '26 16:01

Eddy Talvala



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!