This is a migrated thread and some comments may be shown as answers.

Camera interfacing issue

1 Answer 52 Views
Report a bug
This is a migrated thread and some comments may be shown as answers.
This question is locked. New answers and comments are not allowed.
David Apelt
Top achievements
Rank 1
David Apelt asked on 30 Oct 2012, 10:13 AM
 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 



1 Answer, 1 is accepted

Sort by
0
Deyan Varchev
Telerik team
answered on 30 Oct 2012, 01:58 PM
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.
Tags
Report a bug
Asked by
David Apelt
Top achievements
Rank 1
Answers by
Deyan Varchev
Telerik team
Share this question
or