It seems that your device does not support camera(or it is locked)

Viewed 32750

Android opencv samples and tutorials were running fine and suddenly one day I get this for all of those:
"It seems that your device does not support camera (or it is locked). The application will be closed"
Please help, how to I can fix it?

I have reinstalled opencv and imported again and made new emulators but the problem still persists.

6 Answers

In my case, the issue was
My application use Android Camera in another activity
And another activity was not release the Camera after use it on Destroyed (lock it)
And after I release the Camera on the another activity, this dialog will not showed again.

So generally to fix this issue

  1. Check CAMERA permissions
  2. Check CAMERA not locked (by releasing it after usage in any other activities)
Related