When I call mCamera = Camera.open() it returns null, what could be causing this? My device is the Nexus 7.
I already have the permissions set in my AndroidManifest.xml:
<uses-permission android:name="android.permission.CAMERA" />
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
Figured it out,
You need to call
Camera.open(0).THIS IS ONLY VALID AND WORKING ON THE NEXUS 7 device, as it only has one camera, so is only useful if targeting that device only.