When using the camera plugin with 3.1.0 on Android, the app crashes after photo taken. Screen goes black for long time, then i see an error that my app crashed. Same code works fine on iOS.
Any ideas?
Thanks,
Don
function captureImage1(evt) {
navigator.camera.getPicture(onSuccess, onFail, { quality: 50,
destinationType: Camera.DestinationType.DATA_URL,correctOrientation:true,allowEdit:true,saveToPhotoAlbum:true
});
function onSuccess(imageData) {
var image = document.getElementById('pic1');
image.src = "data:image/jpeg;base64," + imageData;
p1 = image.src;
}
function onFail(message) {
alert('Failed because: ' + message);
}
return false;
}
Any ideas?
Thanks,
Don
function captureImage1(evt) {
navigator.camera.getPicture(onSuccess, onFail, { quality: 50,
destinationType: Camera.DestinationType.DATA_URL,correctOrientation:true,allowEdit:true,saveToPhotoAlbum:true
});
function onSuccess(imageData) {
var image = document.getElementById('pic1');
image.src = "data:image/jpeg;base64," + imageData;
p1 = image.src;
}
function onFail(message) {
alert('Failed because: ' + message);
}
return false;
}

