19 Jul 2012 1:41 AM #1
Unanswered: Using the Camera with Cordova/PhoneGap and Android.
I've been blocked on getting the camera to function with my Sencha touch application, ported to Android using Cordova 1.9
As the docs suggest (at http://docs.sencha.com/touch/2-0/#!/guide/native_apis ) i added the require field for Ext.device.Camera. Unfortunately I run into problems right here, even before I write any code for using the camera. I get an error saying that it cannot locate the camera.js :
07-19 15:09:04.299: E/Web Console(10140): Uncaught Error: [Ext.Loader] Failed loading './device/camera.js', please verify that the file exists at file:///android_asset/www/lib/touch/sencha-touch-all-debug.js:8000
19 Jul 2012 3:28 AM #2
take a look on Phonegap API, it may be helpful to you to accessing camera, etc...
http://docs.phonegap.com/en/1.0.0/ph...md.html#Camerasword-it.com, Sencha Developer House in Turkey - Istanbul University Technopark Suite 204.
19 Jul 2012 4:20 AM #3
Hey thanks for your reply,
I've tried that method as well. With that I get the error that it cannot identify the property 'camera'. Really blocked with this.
18 Oct 2012 5:29 PM #4
Alok, did you solve this issue? I'm experiencing the same.
18 Oct 2012 10:40 PM #5
Well I had asked the same question on stackoverflow and someone posted a probably correct solution after 2 months. However, since I wasn't working on the same project at that time, I couldn't verify if it solved the issue.
The solution is here: http://stackoverflow.com/a/12376149/595947 . Give it a try. Do post here if it works for you.