Skip to content

Instantly share code, notes, and snippets.

@xk
Created January 25, 2011 18:55
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save xk/795409 to your computer and use it in GitHub Desktop.
Save xk/795409 to your computer and use it in GitHub Desktop.
(function () {
function photoOK (imageURI) {
console.log("**** photoOK");
console.log(imageURI);
}
function photoErr (mesage) {
console.log("**** photoErr");
alert('Failed because: ' + message);
}
function takePhoto () {
navigator.camera.getPicture(photoOK, photoErr, {
quality: 10,
allowEdit: true,
destinationType: 1,
sourceType: 1
});
}
takePhoto();
})();
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment