On certain Android devices, our users are receiving an extra “selection” screen before being taken to the image gallery. See attached photo. Here is our code:
$scope.galleryPicture = function(){
getPicture(navigator.camera.PictureSourceType.PHOTOLIBRARY);
};
var getPicture = function(source){
var options = {
quality : 50,
destinationType : navigator.camera.DestinationType.FILE_URI,
sourceType : source,
encodingType: 0,
correctOrientation: true,
targetWidth: 600,
targetHeight: 600
};
$cordovaCamera.getPicture(options).then(function(imageData){
$scope.mypicture = imageData;
}, function(err){
errorService.showError("Failed to get picture, try again!!");
});
};
Could the source be the issue? Would switching to Camera.PictureSourceType.SAVEDPHOTOALBUM have a different effect? As I stated, this only happens on certain Androids.