1. #1
    Sencha User
    Join Date
    May 2012
    Posts
    5
    Vote Rating
    0
    jcming is on a distinguished road

      0  

    Default Unanswered: Photo Taking Application Code

    Unanswered: 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 - Senior Forum Manager mitchellsimoens's Avatar
    Join Date
    Mar 2007
    Location
    St. Louis, MO
    Posts
    33,656
    Vote Rating
    435
    Answers
    3108
    mitchellsimoens has much to be proud of mitchellsimoens has much to be proud of mitchellsimoens has much to be proud of mitchellsimoens has much to be proud of mitchellsimoens has much to be proud of mitchellsimoens has much to be proud of mitchellsimoens has much to be proud of mitchellsimoens has much to be proud of mitchellsimoens has much to be proud of

      0  

    Default


    The example for Ext.device.Camera shows a simple usage. Instead of the setSrc, you would just save to localstorage
    Mitchell Simoens @SenchaMitch
    Sencha Inc, Senior Forum Manager
    ________________
    http://www.JSONPLint.com - Source to lint your JSONP!

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

    Think my support is good? Get more personalized support via a support subscription. https://www.sencha.com/store/

    Need more help with your app? Hire Sencha Services services@sencha.com

    Want to learn Sencha Touch 2? Check out Sencha Touch in Action that is almost in print!

    When posting code, please use BBCode's CODE tags.

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

      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
    16
    Vote Rating
    0
    Vishwastalule is on a distinguished road

      0  

    Default


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

    Thanks,
    Vishwas