我正在开发一款应用程序,您可以用手机拍照并发送至社交网络。 我的应用程序是用sencha touch 2和Phonegap开发的。 当我尝试拍照时,我的应用程序重新启动,并给我一个错误'相机取消'。 我试着看console.logs但它们不会出现...错误'相机已取消' - 带有PhoneGap的应用程序Sencha
这里是我的代码:
function uploadPhoto(data){
// this is where i will send the image file to server
//output image to screen
console.log(data);
}
function fail(msg){
alert(msg);
}
navigator.camera.getPicture(uploadPhoto, fail, {
quality : 30,
destinationType: Camera.DestinationType.DATA_URL
});</i>
我试过phonegap 2.3.0,现在我已经试过2.6.0,没有成功!我会现在尝试2.7.0,如果作品... – 2013-05-02 17:43:21
我试着用2.7.0而没有任何东西!我在我的手机上进行了测试,并给出了同样的错误。 – 2013-05-02 17:57:39