From 85685311592cb6694eaf4e2d8198c7b8cae97afb Mon Sep 17 00:00:00 2001 From: Yakov Fain Date: Wed, 11 Sep 2013 08:53:56 -0400 Subject: [PATCH] modified ch14 --- ch14_hybrid.asciidoc | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/ch14_hybrid.asciidoc b/ch14_hybrid.asciidoc index 13ca5d4a..e30230cd 100644 --- a/ch14_hybrid.asciidoc +++ b/ch14_hybrid.asciidoc @@ -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].