Previewing your application on Android

improve this page | report issue

Overview

missing_alt

Prerequisite: Make sure to read Previewing the web resources of your application.

This tutorial covers the following topics.

Understanding the Android native project

After you add the Android environment, an Android project is generated and added to the workspace.
This project folder does not contain a copy of the application code. Rather, it is mapped to the native folder within the android folder of the application.

Previewing the application in the Android Emulator

CLI

If you are not using MobileFirst Studio's Eclipse plug-in, use Android Studio to navigate to the application folder in order to open it.

MobileFirst Studio

Before you can run the Android application in the Android Emulator (or AVD, Android Virtual Device), you must create a virtual device by following the Android documentation.

When an AVD is available, right-click the automatically generated Android project and select Run As > Android Application.

missing_alt

Running the application in a physical device

When an Android device is connected to the computer with a USB cable, the Eclipse ADT plug-in automatically recognizes the Android device and attempts to deploy applications onto it when you right-click the automatically generated Android Project and select Run As > Android Application.

Last modified on December 02, 2015