I am using Cordova 3.4 with a plugin for the camera ( https://github.com/apache/cordova-plugin-camera/blob/master/doc/index.md )
When i call
navigator.camera.getPicture(onSuccess, onFail, { quality: 75, destinationType: window.Camera.DestinationType.FILE_URI, sourceType: window.Camera.PictureSourceType.CAMERA, //allowEdit: true, //cameraDirection: window.Camera.Direction.FRONT, //encodingType: window.Camera.EncodingType.JPEG, //targetWidth: 100, //targetHeight: 100, //popoverOptions: window.CameraPopoverOptions, saveToPhotoAlbum: true }); function onSuccess(imageData) { alert(imageData); } function onFail(message) { alert('Failed because: ' + message); }
This code works for Windows Phone 8.1, but does not work for Android 4.3 (Jelly Bean). When I enter the code in eclipse, I see that it successfully saves the photo in the android temp directory, but does not cause JavaScript to complete or the event to end, so I can not get the image on Android.
I tried using a real device and Galaxy Note 2 emulator and did not call onSuccess on both.
Are there any known issues or workarounds for this issue?
source share