Skip to content

Instantly share code, notes, and snippets.

@amiller
Created October 18, 2012 16:51
Show Gist options
  • Save amiller/3913208 to your computer and use it in GitHub Desktop.
Save amiller/3913208 to your computer and use it in GitHub Desktop.
<html>
<head>
<script type="text/javascript" charset="utf-8" src="file:///android_asset/www/cordova-2.1.0.js"></script>
</head>
<script>
function takePicture() {
alert('step1');
navigator.camera.getPicture( function (imageData) {alert('success');}, function (message) { alert('message'); }, [ ] );
}
</script>
help!
<script>alert('ok')</script>
<input type="button" style="width:200px; height:400px" onClick="takePicture();"/>
</html>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment