Skip to content

Commit

Permalink
modified ch14
Browse files Browse the repository at this point in the history
  • Loading branch information
yfain committed Sep 11, 2013
1 parent aff08d7 commit 8568531
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions ch14_hybrid.asciidoc
Original file line number Diff line number Diff line change
Expand Up @@ -393,8 +393,8 @@ Now we'll add the camera access to the jQuery version of the Save Sick Child app
The main goal is to use PhoneGap API to access the camera and take the photo. To make this application a bit more useful, we also want to add the functionality to upload the photo image to the server.

NOTE: As of PhoneGap 3.0, you need to add to your project the plugin supporting camera by running the following command:
_install the camera plugin.
http://docs.phonegap.com/en/3.0.0/cordova_camera_camera.md.html#Camera_

_cordova plugin add https://git-wip-us.apache.org/repos/asf/cordova-plugin-camera.git_

For starting the device's default camera application and taking photos, PhoneGap offers the function `navigator.camera.getPicture()`, which takes three arguments: the name of the function handler if the photo has been successfully taken, the handler for the error, and the object with the optional parameters describing the image. Details about the camera API are available in the http://docs.phonegap.com/en/3.0.0/cordova_camera_camera.md.html#Camera[PhoneGap documentation].

Expand Down

0 comments on commit 8568531

Please sign in to comment.