Let's stay in contact

Welcome! and thank you for visiting my little home on the web. I would love to tell you more about my journeys in tech and running. I mostly write about what I learn from running long distances and building large scale web applications. I also enjoy reading your email responses.

Thank you, Chris

Click Here to Join Me

Building native HTML and JavaScript apps for Android can be done with Apache Cordova on Ubuntu.

  • Download the Android SDK from developer.android.com
  • Unzip the Android SDK and place the contents of the ‘sdk’ folder in ~/Development/adt-bundle/sdk
  • Add the SDK to your path
    • PATH=$PATH:~/Development/adt-bundle/sdk/platform-tools:~/Development/adt-bundle/sdk/tools
    • To permanently add the Android SDK to your Ubuntu path follow this Ubuntu.com article
  • install Apache Cordova with npm npm install -g cordova (Install nodejs if you don’t have it.)
    • cd to your Documents directory and create a helloWorld folder, then cd into that folder
    • cd ~/Documents
    • mkdir helloWorld
    • cd helloWorld
  • Create a Cordova app and cd to the new folder
    • cordova create hello com.example.hello "Hello World"
    • cd hello/
  • Add Android as a cordova platform
    • cordova platform add android
  • Create an Andorid emulator
    • android create avd -n hello -t 1
  • Run the cordova app on the emulator
    • cordova emulate android
  • Build your web app and place it in the www folder, making sure to include config.xml and cordova.js

Chris Larson

I fell in love with running after I committed to running a 5k everyday during the month of September. Now I'm training for my first Marathon on October 1st, 2017.

chrylarson chrylarson