Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

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

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.

like image 484
SBM Avatar asked Dec 18 '13 19:12

SBM


People also ask

Why does my device not support camera?

Go to Settings > Apps and Notifications > See all X apps > Camera app > Permissions > Camera > See all apps with this permissions. You'll see two lists: one with apps that have permission to your Android device's camera and the one that doesn't.


2 Answers

Go to your device settings -> apps -> YOUR APP -> Permissions -> turn on camera permission..

Worked for me..

like image 122
orimen Avatar answered Sep 28 '22 02:09

orimen


Check the camera permission in AndroidManifest.xml.

<uses-permission android:name="android.permission.CAMERA"/>

    <uses-feature android:name="android.hardware.camera"/>
    <uses-feature android:name="android.hardware.camera.autofocus"/>
    <uses-feature android:name="android.hardware.camera.front"/>
    <uses-feature android:name="android.hardware.camera.front.autofocus"/>

Its working for me..

like image 27
Jitesh Dalsaniya Avatar answered Sep 28 '22 03:09

Jitesh Dalsaniya