Skip to content

Instantly share code, notes, and snippets.

@d33pfri3d
Forked from matsumotius/phonegapCamera.js
Created March 8, 2012 22:17
Show Gist options
  • Save d33pfri3d/2003814 to your computer and use it in GitHub Desktop.
Save d33pfri3d/2003814 to your computer and use it in GitHub Desktop.
Phonegap : Camera
function getPicture(){
navigator.camera.getPicture(function(data){
// success handler
alert('success');
}, function(){
// error handler
alert('error');
}, {
// options
quality: 50
});
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment