Android > Phone Gap >> Work with Phonegap Views : 214
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.

Phonegap_android_sdkmanager.png

 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

Phonegap_android_avdmanager.png

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.

 $ sudo npm install -g cordova

Step 6 - Project Creation

We can create project by using below commands.

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

Step 7 - 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 8 - 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 24
Developer in .Net!
Comment this article
Name*
Email Address* (Will not be shown on this website.)
Comments*
Enter Image Text*
   
View All Comments
  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.