Skip to content

Instantly share code, notes, and snippets.

@xk xk/takePhoto.js
Created Jan 25, 2011

Embed
What would you like to do?
(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
You can’t perform that action at this time.