Part 12: Using the Camera API

In this section, we use the PhoneGap Camera API to provide the user with
the ability to take a picture of an employee, and use that picture as
the employee’s picture in the application. We do not persist that
picture in this sample application.
The code below only works when running the application on your device as
a PhoneGap app. In other words, you can’t test it in a browser on the
desktop.