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
I solved this issue by following below steps.
Open the "AVD Manager" and select the virtual device you are using
Click on the "Edit" button

In the "Hardware" section, select "New" and add "Configures camera facing back" and click Ok.
In the dropdown next to the entry, select "webcam0" or the one corresponding to the camera you want to use

Stop the AVD and restart again.