How to take a photo using Camera in Sencha App? -


i trying take picture using camera in sencha touch 2. here have 1 button 'take picture', when press it, camera should start. new sencha touch 2, unable figure out, how this? used below code:

sencha fiddle link

please me. not want use phone gap.

you have add device folder of sencha library in root directory , add below code in

ext.require('ext.device.camera'); 

and use code capture image using camera

ext.device.camera.capture({             success: function(image) {                 imageview.setsrc(image);             },             quality: 75,             width: 200,             height: 200,             destination: 'data'         }); 

Comments

Popular posts from this blog

java - Play! framework 2.0: How to display multiple image? -

gmail - Is there any documentation for read-only access to the Google Contacts API? -

php - Controller/JToolBar not working in Joomla 2.5 -