sindoki
23 Aug 2012, 1:24 PM
Hello, everyone.
The question is following...
I want to pick a picture from a device memory or from camera. I use this code:
Ext.device.Camera.capture({
success: function (image) {
var imageView = Ext.getCmp('imageEditField');
imageView.setSrc(image);
},
quality: 75,
width: 64,
height: 64,
destination: 'file',
options: {
source: 'album'
}
});
But this code only places the default sencha image (the tea leaf) in the image field and doesn't prompt to pick or shot a picture. I tried many variants of Source and Destination parameters but result remains the same.
What should I do?
The question is following...
I want to pick a picture from a device memory or from camera. I use this code:
Ext.device.Camera.capture({
success: function (image) {
var imageView = Ext.getCmp('imageEditField');
imageView.setSrc(image);
},
quality: 75,
width: 64,
height: 64,
destination: 'file',
options: {
source: 'album'
}
});
But this code only places the default sencha image (the tea leaf) in the image field and doesn't prompt to pick or shot a picture. I tried many variants of Source and Destination parameters but result remains the same.
What should I do?