Just follow these steps: How to take photos
You need a front camera, so you must call to select a camera
myCamera.open(cameraNumber)
and cameraNumber is the number of the camera you want to use. if you have two cameras, you can call it with 0 or 1. Try both options to see which camera activates each parameter.
source share