Running your Simple App

Introduction

You have now created a simple app that runs in your browser. We will now move the app into Android Studio where it can be run on a mobile device. To run your app on a mobile device follow the instructions below.

  1. Set up your development environment
    • This is explained in the Setting up your Development Environment chapter.
  2. Copy the code listing into the index.htm file in Android Studio.

  3. Copy your assets into the assets directory.
    • Copy the css, images and js directories and their contents into the assets directory.
    • Your folder structure show look like the image below.
  4. Run your app.
    • This is explained in the Running your App in the Android Emulator and Running your App on a Mobile Device chapters.

Folder structure

I> All the assets for the examples can be found in the github repository that accomapies this book.

Summary

In this section we went through the steps on how to run our examples in Android Studio and ultimately how to run it on a mobile device.