在 Windows Phone 8/8.1 上,navigator.camera.getPicture 打开 photolibrary 并调用 onSuccess 回调函数,但同时它引发以下错误“'System.NullReferenceException'发生在 worklight-windowsphone8.DLL ”关闭工作灯应用程序 --Scenerio Worklight 6.3.0 windowsphone8 环境新环境已创建。cordova 3.6 on button click Windows Phone 8/8.1 photogallery is open image is selected and photoalbum closes and I see the length in alert 但同时引发上述错误。
--code on button click
function onClickB(){
navigator.camera.getPicture(onSuccess, onFail, {
quality : 20,
destinationType : navigator.camera.DestinationType.DATA_URL,
sourceType : navigator.camera.PictureSourceType.PHOTOLIBRARY
});
function onSuccess(imageData)
{
alert(imageData.length);--it gives me length Number
var VarUsedtoSendToAdapter=imageData;
}
--OnVS Debug Console get
System.NullReferenceException' occurred in worklight-windowsphone8.DLL on Continue it closes the application