cordova - PhoneGap 2.9.0 -- Can't get app to access camera -


i've exhausted every resource can find on this, , nothing has helped. far can tell, there's wrong line:

<script type="text/javascript" charset="utf-8" src="cordova-x.x.x.js"></script> 

i copied example documentation on camera use ( http://docs.phonegap.com/en/2.9.0/cordova_camera_camera.md.html ) , phonegap version 2.9.0. issue seem having don't have cordova-2.9.0.js file. why that? it?

trying run code throws

"uncaught typeerror: cannot call method 'getpicture' of undefined @ file:///android_asset/www/test.html:12"

i've included lot of permissions in config.xml file out of desperation work:

<plugin name="camera" value="org.apache.cordova.cameralauncher" /> <feature name="http://api.phonegap.com/1.0/device" /> <feature name="http://api.phonegap.com/1.0/camera"/> <feature name="http://api.phonegap.com/1.0/file"/> <feature name="http://api.phonegap.com/1.0/media"/> <feature name="http://api.phonegap.com/1.0/network"/> 

i've been @ hours , appreciate can get.

edit: i'm working on android , i've tried "cordova.js" instead of "cordova-x.x.x.js" same results

edit: reinstalled phonegap latest version. have "cordova.js" , "phonegap.js" , they're same. left reference line thing "cordova.js" , i'm still getting uncaught typeerror, it's saying uncaught typeerror: cannot read property 'picturesourcetype' of undefined , ...cannot read property 'png' of undefined. put permissions in config.xml file , this:

<uses-permission android:name="android.permission.write_external_storage" /> 

in androidmanifest. can help? why getting error?

figured out.

the problem needed install plugins using command line interface ( http://docs.phonegap.com/en/3.0.0/guide_cli_index.md.html#the%20command-line%20interface )

works, now!


Comments

Popular posts from this blog

c++ - Creating new partition disk winapi -

Android Prevent Bluetooth Pairing Dialog -

VBA function to include CDATA -