Android > Phone Gap >> Work with Phonegap Views : 3001
Rate This Article :

How to develop android app using Phonegap

This articles helps to convert html file into Android APK. It means, some level of javascript and HTML knowledge is enough to create your first android application!

Follow the below steps to create your first android application. After compiling your APK, transfer it to your mobile device to install it.

Step 1

Download and Install Eclipse ADT Bundle. This will install eclipse with Android developer tools along with Android SDK tools.

 Step 2

After installing Eclipse ADT Bundle, Open Android SDK Manager and install the below components.


 Step 3 - Setting up Android Emulator

Android Virtual Device (AVD) needs to be created in order to simulate the application. To do it, Open AVD Manager, go to Window à Android Virtual Device Manager


Step 4 - Install Node.js

Node.js is required to install Command Line Interface. You can install it from here

Step 5 - Install Cordova CLI

Install Cordova with npm using below line. Use "Cmd" Prompt and type the below command.

 $ sudo npm install -g cordova

after installation, check "cordova --version" to verify the version of Cordova installed. If version number is displayed, it means that you have installed Apache Cordova Properly. 

Step 6 - Install GIT

Install GIT From the below link to use "GIT CMD" to create Phonegap Project

Step 7 - Project Creation

We can create project by using below commands. Click on "GIT CMD" and enter below commands. "$" is optional when using "GIT CMD".

$ cordova create MyFirstApp com.mydomain.MyApp MyFirstApp
$ cd MyFirstApp
$ cordova platform add android

Step 8 - Build

 $ cordova build

This command will build the PhoneGap application into APK file in the project path. Transfer this .apk file to your mobile device and install it.

Step 9 - Deployment

 $ cordova run android

 If you want to run it in emulator, executing the above command line will launch an Emulator (this may take few moments). Once Emulator get started, You will see your application. That’s it!!

About Author
Raj Kumar
Total Posts 41
Developer in .Net!
Comment this article
Email Address* (Will not be shown on this website.)
Enter Image Text*
View All Comments
Comments not posted yet!! Please post your comments on this article.
  Privacy   Terms Of Use   Advertise With Us   Contact Us
© 2016 Developerin.Net. All rights reserved.
Trademarks and Article Images mentioned in this site may belongs to Microsoft and other respective trademark owners.
Articles, Tutorials and all other content offered here is for educational purpose only and its author copyrights.