getpicture navigator.camera.getPicture(cameraSuccess, cameraError, [cameraOptions]);
cameraOptions
{ quality : 75,
destinationType : Camera.DestinationType.DATA_URL,
sourceType : Camera.PictureSourceType.CAMERA,
allowEdit : true,
encodingType: Camera.EncodingType.JPEG,
targetWidth: 100,
targetHeight: 100,
popoverOptions: CameraPopoverOptions,
saveToPhotoAlbum: false };
.
Android Quirks
Android 4.4: Android 4.4 , . . - getPicture() , "", "", "" " ", FILE_URI. , , "". fooobar.com/questions/12209/.... . CB-5398 .
Android , Cordova . .
fileEntry, file() mettadatas
function cameraSuccess(urls) {
window.requestFileSystem(LocalFileSystem.PERSISTENT, 0, function(){
}, function(){
});
window.resolveLocalFileSystemURI(urls, function(fileEntry){
fileEntry.file(function(file){
var type = file.type;
var nameoffile = file.name;
}, function(){
});
},function(){
} );
-