mardi 25 mars 2014

Ext.device.Camera gives fake image on native android app

I am building native app with sencha cmd 4.0.3.74 and i can't get the camera work. I am using below code to get camera work but i just get fake sencha image.



Ext.device.Camera.capture({

success: function(img) {

image.setSrc(img);





},

failure:function(err){

console.log(err);

},

source:'camera',

quality: 75,

width: 200,

height: 200,

destination: 'data'

});




Aucun commentaire:

Enregistrer un commentaire