Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Phonegap without eclipse

Tags:

camera

cordova

Is it possible to create Phonegap APP´s without using Eclipse, but using like Notepad++ instead, and still get access to smartphone specifics like camera, accelerometor, sound recorder ect. ?

I did try to create all the needed files like config.xml and index.html and so forth. But i cant get the Camera to work, i havent tryed other API´s. I used the Full Example code from Phonegap´s own website under API´s (docs).

Another issue i found was that, i cant find any good web tutorials about Phonegap without using Eclipse.

I hope that my question is clear. Im not a native english speaker, so sorry for my choice of words.

Best regards

Dan

like image 671
Daniel Avatar asked Nov 03 '22 12:11

Daniel


2 Answers

npm install -g cordova will give you a neat command line interface.

See also https://npmjs.org/package/cordova

cordova create Baz
cd Baz
cordova platform add android
cordova build
cordova compile android # will install the .apk on your connected Android device

Just not sure how this plays out in Windows but Node.js and npm seem to be available so it should be fine. If you run into problems you might want to try cygwin. (Personally it's been first thing to install if I ever have to do something serious on Windows.)

like image 52
kqw Avatar answered Nov 15 '22 13:11

kqw


I only use Eclipse to launch the debugger and export the apk package. I edit the project files directly with SublimeText. It works like a charm :)

like image 39
Tibor Szasz Avatar answered Nov 15 '22 14:11

Tibor Szasz