How-to QuickStart with Android App Development on Cordova CLI for Ubuntu 15.10 Wily Linux

January 19th, 2016 by thelinuxevangelist

Android App Dev QuickStart with Cordova for Ubuntu

The Linux Tutorial Shows You Step-by-Step How-to Getting-Started Easily with Android App Development with Apache Cordova on Ubuntu 15.10 Wily Werewolf 32/64bit GNU/Linux.

Cordova is an open source framework that lets you Convert HTML, JavaScript, and Cascading Style Sheets (CSS) into a Native Application that can run on iOS, Android, and other mobile platforms.

Cordova uses a Native “Wrapper” around a Web View (think of it as an embedded browser), commonly called a hybrid mobile application.

Android App Development QuickStart on Cordova CLI for Ubuntu 15.10 Wily - Featured
  1. Open a Shell Terminal emulator
    Ctr+Alt+t on Desktop
    (Press “Enter” to Execute Commands)

    Android App Development QuickStart on Cordova CLI for Ubuntu 15.10 Wily - Open Terminal Shell Emulator
  2. How-to Install Latest Android SDK Tools on Ubuntu Linux:

    Android SDK Installation for Ubuntu

    Verify to Get Installed at least:

    • The Android “SDK Platform” for Android API 22!
    • Latest Android SDK “Platform-tools
    • Latest Android SDK “Build-tools

    Cordova Android Build Issue Error: Please install Android target: "android-22" - Installing API 22

  3. How-to Install Apache Cordova for Ubuntu Linux

    Cordova Installation on Ubuntu
  4. Creating the First Cordova Hello-World Project
    To keep everything in order first create a Target Directory to keep all Cordova Projects

    mkdir ~/Documents/cordova

    Change into the cordova Directory with

    cd ~/Documents/cordova

    Then lets go to Make the Cordova Project

    cordova create myCordovaProHelloWorld
  5. How-to Create an Android AVD Emulator on Linux Shell

    Android AVD Creation Guide
  6. Adding the Android Platform into Cordova Project
    First Change into the Target Cordova Project Dir

    cd myCordovaProHelloWorld

    To Show Up all the Platforms available do

    cordova platforms

    The Output will show

    Installed platforms:
    Available platforms: android, amazon-fireos, blackberry10, browser, firefoxos, ubuntu, webos

    Then to Enable Just the Android one

    cordova platforms add android

    To Check that the Android platform was Enabled Run again

    cordova platforms

    This time the Output should Show Up Android Loaded into our Cordova Project

    Installed platforms: android
    Available platforms: amazon-fireos, blackberry10, browser, firefoxos, ubuntu, webos
  7. To Display a Custom Hello-World Notice

    nano www/index.html


    Apache Cordova


    Hello-World from Cordova

    Ctrl+x to Save & Exit from nano Editor

  8. Building and Emulating Cordova Android Hello-World

    cordova build

    Or even just run the all-in-one Android Emulating process

    cordova emulate
  9. Finally you will also receive a Visual Gratification of a job well done :)

    Android App Development QuickStart on Cordova CLI for Ubuntu 15.10 Wily - Cordova Android Emulation Success

Share on Tumblr

Tags: , , , , , , , , , , , , , , , , , , , , , , , , , , , , ,

Comments are disabled