Friday, August 2, 2013

Cordova basic usage

Time to compile Phonegap using Cordova.
Basic commands;

1. Create an Android project called com.example.hello in folder hello.

cordova create hello com.example.hello 

2. Include Android platform for cordova. In the project folder, type;

cordova platform add android

3. Compile the project (some call this build). In the project folder, type;

cordova build

2. Start the android emulator with the compiled cordova project. In the project folder, type;

cordova emulate android

No comments: