Created
May 24, 2013 19:31
-
-
Save lamalex/5645954 to your computer and use it in GitHub Desktop.
Revisions
-
Alex Launi created this gist
May 24, 2013 .There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -0,0 +1,24 @@ takePicture: function() { var options = { quality: 50, destinationType: Camera.DestinationType.FILE_URI, sourceType: 1, encodingType: 1 }; navigator.camera.getPicture( function(imageData) { navigator.notification.alert(imageData, null, "great news!", '\'Aight'); }, function(message) { navigator.geolocation.getCurrentPosition( function(position) { navigator.notification.alert(position.coords.latitude, null, "baaad news", 'OK'); }, function(message) { alert(message); } ); }, options ); }