cordova - 'Error capturing image' with Phonegap on Android -
i need capture image phonegap app. on ios works fine on android (via phonegap build) throws error "error capturing image".
i added following lines config.xml doesn't change anything:
<feature name="camera"> <param name="android-package" value="org.apache.cordova.camera.cameralauncher" /> </feature> <feature name="http://api.phonegap.com/1.0/device" /> <feature name="http://api.phonegap.com/1.0/camera" /> <feature name="http://api.phonegap.com/1.0/file" /> <feature name="http://api.phonegap.com/1.0/media" /> <feature name="http://api.phonegap.com/1.0/network" />
my api call looks that:
$(document).on('click', '#camerapreview', function() { picturesource = navigator.camera.picturesourcetype; destinationtype = navigator.camera.destinationtype; navigator.camera.getpicture(ongetpicturesuccess, ongetpicturefail, { quality: 40, sourcetype: camera.picturesourcetype.camera, destinationtype: camera.destinationtype.file_uri, allowedit: true, encodingtype: camera.encodingtype.jpg, targetwidth: 1000, targetheight: 1000, savetophotoalbum: true, correctorientation: 1 }); });
i use phonegap 3.7 phonegap build.
ok, know answer. problem savetophotoalbum: true
option. android doesn't recognize this. when delete option works fine.
Comments
Post a Comment