What is the Apache Cordova..???

Apache_Cordova2

Apache cordova is a platform for building native mobile applications using HTML, CSS & JavaScript.

Apache Cordova is a set of device APIs that allow a mobile app developer to access native device function such as the camera or accelerometer from JavaScript. Combined with a UI framework such as jQuery Mobile or Dojo Mobile or Sencha Touch, this allows a smartphone app to be developed with just HTML, CSS, and JavaScript. >>from

 

Requirements :

  • Node.js
  • SDKs for each platform you wish to support:

 Simply way to install :

$ sudo apt-add repository ppa:cordova-ubuntu/ppa
$ sudo apt-get update
$ sudo apt-get install cordova-cli
$ sudo npm install -g cordova

Create a demo application

$ cordova create Demo my.demo.project -d

Add platforms
You have to go in “Demo” directory (newly created cordova project)
-for android platform

$ cordova platform add android

-for blackberry platform

$ cordova platform add blackberry

-for ios platform

$ cordova platform add ios

-for windows platform(note: In windows machine only)

cordova platform add wp7
cordova platform add wp8

Add all plugins

$ cordova plugin add org.apache.cordova.camera
$ cordova plugin add org.apache.cordova.media-capture
$ cordova plugin add org.apache.cordova.console
$ cordova plugin add org.apache.cordova.contacts
$ cordova plugin add org.apache.cordova.device
$ cordova plugin add org.apache.cordova.file
$ cordova plugin add org.apache.cordova.file-transfer
$ cordova plugin add org.apache.cordova.globalization
$ cordova plugin add org.apache.cordova.inappbrowser
$ cordova plugin add org.apache.cordova.network-information
$ cordova plugin add org.apache.cordova.splashscreen

Leave a Comment