Results 1 to 4 of 4

Thread: Photo Taking Application Code

  1. #1
    Sencha User
    Join Date
    May 2012
    Posts
    5
    Vote Rating
    0
      0  

    Default Photo Taking Application Code

    Hello,

    I would like to incorporate taking photographs for identification purposes and saving them in localStorage as a part of my application. Though I have been able to find completed Sencha applications, I have not been able to see source code or a tutorial on how this would be done. Any resources or built-in Sencha tools for such a process would be much appreciated.

    We are going to use PhoneGap to make this application for iPhone/Android, so any tools or resources on that end would also be awesome

    Thanks!

  2. #2
    Sencha - Sr Software Engineer mitchellsimoens's Avatar
    Join Date
    Mar 2007
    Location
    Gainesville, FL
    Posts
    39,556
    Answers
    3931
    Vote Rating
    1272
      0  

    Default

    The example for Ext.device.Camera shows a simple usage. Instead of the setSrc, you would just save to localstorage
    Mitchell Simoens @LikelyMitch
    Sencha Inc, Senior Software Engineer
    ________________
    Learn BBCode and use it! Checkout the CODE tag!

    Check out my GitHub, lots of nice things for Ext JS and Sencha Touch
    https://github.com/mitchellsimoens

  3. #3
    Sencha User alok.sharma127's Avatar
    Join Date
    Jun 2012
    Posts
    14
    Answers
    1
    Vote Rating
    1
      1  

    Default

    Hi mitchellsimoens. The example for Ext.device.Camera doesnt seem to be working for me. The error says it's unable to locate Camera.js. I tried using other components under Ext.device, but all give the same error. The error appears at the require statement:
    Code:
    Ext.require('Ext.device.Camera');
    I've been struggling with this issue for quite some time now and havent found any solution. I also have noticed few others also facing this issue. Would you suggest I file a bug report with Sencha?

  4. #4
    Sencha User
    Join Date
    Sep 2012
    Location
    India
    Posts
    19
    Vote Rating
    0
      0  

    Default

    Try this, this worked for me.
    requires: [
    'Ext.device.Camera'
    ],

    Thanks,
    Vishwas

Tags for this Thread

Posting Permissions

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