2015-04-02 52 views
0

我在我的sencha应用程序中使用了ext.device.Camera.capture功能,但是它不支持cordova,不工作,相机不显示。Ext.device.Camera.capture无法在sencha touch 2.4.1和cordova上工作2.9.1

在app.js我有 'Ext.device.Camera' 在需要

下面的代码

Ext.device.Camera.capture({ 
     success: function(image) { 
      console.log(image); 
     }, 
     failure: function(){ 
      Ext.Msg.alert("Errore", "Errore nel salvataggio della foto, per favore riprovare."); 
     }, 
     quality: 85, 
     width: 1280, 
     height: 1713, 
     destination: 'file', 
     encoding: 'jpg' 
}); 

ň控制台登录我得到 'http://www.sencha.com/img/sencha-large.png'

回答

0

我忘了取消注释cordova在app.json中的导入行