This articles helps to convert html file into Android APK. It
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.
Download and Install Eclipse ADT Bundle. This will install eclipse
with Android developer tools along with Android SDK tools.
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.
$ 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
$ 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!!