Skip to content

Commit ed28fca

Browse files
committed
Show a better error when we're not able to open the camera
Signed-off-by: Umair Khan <[email protected]>
1 parent 64d01cd commit ed28fca

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/in/omerjerk/processing/video/android/Capture.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -219,8 +219,8 @@ public void startCamera(Integer cameraId) {
219219
mCamera = Camera.open(cameraId);
220220
mCamera.setDisplayOrientation(90);
221221
} catch (Exception e) {
222-
log("Couldn't open the Camera");
223-
e.printStackTrace();
222+
System.err.println("Couldn't open the camera");
223+
System.err.println("Make sure you have added the Camera permission in AndroidManifest.xml");
224224
}
225225
}
226226

0 commit comments

Comments
 (0)