Closed ghost closed 4 years ago
You need to specify that you need camera access in your AndroidManifest.xml file and might also need to request camera permission in your activity class.
<application>
...
<uses-feature android:name="android.hardware.camera" />
<uses-permission android:name="android.permission.CAMERA" />
</applciation>
protected void onCreate(Bundle savedIntanceState) {
...
ActivityCompat.requestPermissions(this, new String[]{CAMERA}, REQUEST_CAMERA);
}
See this guide for a full example.
This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.
W/CameraBase: An error occurred while connecting to camera: 0