cordova - How to get scan barcodes with an iPhone -


I want to write an HTML5 application to activate the user's camera to read the barcode.

I do not know what the difference is between phoneagap and cordova so i am really confused i am probably installing a lot of software on my pc, but i'm just trying to follow the instructions I am hopeful that at some point some Javascript will start writing.

I have installed NPM on my Windows 8 machine. When I type "phonegap run android"

  [phonegap] Android SDK detects the environment ... [phonegap] using the local environment connecting the Android platform [phonegap] ... [PhoneGrap] Unavailable Library Cordova / Android / 3.3.0 [PhoneGap] Download https://git-wip-us.apache.org/repos/asf?p=cordova-android .git; A = snapshot; H = 3.3.0; Sf = Tgz ... [Error] An error occurred during the creation of the Android sub-project. C: \ Users \ Phillip \ .cordova \ lib \ android \ cordova \ 3.3.0 \ bin \ node_modules \ q \ q.js: 126 throw e; ^ Error: Error: To execute the command 'ant', make sure that you have installed an ant and add add-on to your path. ChildProcess.exithandler (child_process.js: 641: 7) at ChildProcess.EventEmitter: C: \ Users \ Phillip \ .cordova \ lib \ android \ cordova \ 3.3.0 \ bin \ lib \ check_reqs.js: 47: 27. Execute (events.js: 98: 17) in the socket may stop (child_process.js: 743: 16). & Lt; Anonymous & gt; (Net.js: 466: 12)  

Then on pipe.close (soft.meter.imet (events.js: 95: 17) (child_process.js: 956: 11) And it removed c: \ apache-ant: I again added the user variable ANNDHOE with the value of c: \ apache-ant I also added, C: \ app ache-ent \ bin system variable "path".

When I come on the CMD line and type "Cordova", then it says that Cordova is not recognized.

Edit 1: Typing "PhoneGap Run Android" Yield [Error] Project Directory Not Found

Edit 2:

Maybe I should just download it from their download page.

I phonegap build . PhoneGap Build Here you can find:

If you use that, then you can scan the app directly with your Android device with a bar code reader. Areas are. The app will automatically download to your device and you can run the app.

You can also use another program called Blue Stacks. Link:

BlueStacks is an emulator.


Comments

Popular posts from this blog

eclipse plugin - Run java code error: Workspace is closed -

ios - How do I use CFArrayRef in Swift? -

scala - Play Framework - how to bind form to a session field -