|

楼主 |
发表于 2016-5-26 16:05:30
|
显示全部楼层
把sourceType这个参数改成navigator.camera.PictureSourceType.PHOTOLIBRARY吧,PhotoAlbum是会不认,跳出拍照界面。
navigator.camera.getPicture(onSuccess, onFail, {
mediaType : 0,//只选择图片
quality:80,
allowEdit:true,
targetWidth:100,
targetHeight:100,
destinationType: navigator.camera.DestinationType.DATA_URL, sourceType: navigator.camera.PictureSourceType.PHOTOLIBRARY
//sourceType: navigator.camera.PictureSourceType.PhotoAlbum//在安卓中,这个参数会跳出拍照界面
});
|
|