I brought a Nexus5X few days ago. I tried to test an android app on it. It keeps reporting error:
W/CameraBase﹕ An error occurred while connecting to camera: 0
D/TAG﹕ Camera Does Not exist
I print out the Camera numbers by Camera.getNumberOfCameras()
, it says 2
.
I also tried to do Camera.open(1)
, same thing:
W/CameraBase﹕ An error occurred while connecting to camera: 1
D/TAG﹕ Camera Does Not exist
I ran this app on other phones like Nexus 4, it works fine. Any idea how to deal with this? Any help is appreciated. Thanks.