Camera interfacing issue

2 posts, 0 answers
  1. David Apelt
    David Apelt avatar
    27 posts
    Member since:
    May 2007

    Posted 30 Oct 2012 Link to this post

     I created a blank project and copied in the camera code as found at

    http://docs.icenium.com/example-apps-and-code-snippets/code-snippets/cordova-api-samples/camera

    (I had to include the  <!DOCTYPE html><html>    <head> since it is missing from the example) 

    When running in the simulator or on an Android it reports

    Uncaught TypeError: Cannot read property 'DATA_URL' of undefined at index.html (line: 74)

    I can see this code in the  cordova.android.js file but it does not seem to get called.  Am I supposed to call some code to setup the camera? If so what is it? Why is it not in the sample.

    I am one very confused software engineer.

    Thanks
    Dave A 



  2. Deyan Varchev
    Admin
    Deyan Varchev avatar
    150 posts

    Posted 30 Oct 2012 Link to this post

    Hi,

     Thanks for reporting these issues. Others have also reported the missing doctype, html and head tags in the docs and we are already looking into fixing it as soon as possible. In the meantime I'd advise you to go and clone the samples directly from github - https://github.com/icenium/. All api samples have their own repositories with the latest improvements applied. You can do that directly from Graphite.

     Let me address the error you receive when trying to use the camera sample. Unfortunately, some of the device specific APIs are not yet supported in the simulator (camera is one of them). We are actively working on implementing that and soon you'll see more things working in the simulator also. I tested the sample on a couple of android phones and it worked as expected there. If you experience this error on your android device, please share some details on the device (brand, android version, etc) and what account (email) you use when logging into Icenium.

    Thanks in advance for the collaboration. If you have any other questions, don't hesitate to contact us.

    Regards,
    Deyan Varchev
    the Telerik team

    Share feedback and vote for features on our Feedback Portal.
    Want some Kendo UI online training - head over to Pluralsight.
Back to Top