Results 1 to 2 of 2

Thread: Ext.device.Camera doesn't work on sencha 2.4.1 and cordova 2.9.1

  1. #1
    Sencha User
    Join Date
    Mar 2013
    Posts
    40
    Answers
    1

    Default Ext.device.Camera doesn't work on sencha 2.4.1 and cordova 2.9.1

    I'm using the Ext.device.Camera.capture function in my sencha application with cordova for ios but it doesn't work, the camera doesn't show up.

    In app.js I have 'Ext.device.Camera' in requires

    Here's the code

    Code:
    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'
    });
    In console log I get 'http://www.sencha.com/img/sencha-large.png'

  2. #2
    Sencha User
    Join Date
    Feb 2013
    Location
    California
    Posts
    11,985
    Answers
    506

Similar Threads

  1. Native Camera Issue: Sencha + Cordova
    By em7191 in forum Sencha Touch 2.x: Bugs
    Replies: 4
    Last Post: 3 Mar 2016, 6:49 AM
  2. Cordova + Ext.device.Camera keeps loading
    By the87boy in forum Sencha Touch 2.x: Q&A
    Replies: 4
    Last Post: 12 Sep 2014, 3:29 AM
  3. Ext.device.Camera.Capture gave Sencha Image
    By Otoniel Castillo in forum Sencha Touch 2.x: Q&A
    Replies: 2
    Last Post: 4 Dec 2013, 6:35 AM
  4. how we can access device camera and photo gallery in sencha touch1 website
    By dhanraj.bhandari in forum Sencha Touch 1.x: Q&A
    Replies: 5
    Last Post: 11 Jul 2012, 11:45 PM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •