Chapter 1. Android

1.1. Deploying an App on Android

There are many ways to install an .apk file onto an Android device or emulator. Some of these ways are detailed in the text below. If you do not have an Android device, use an Android emulator which is installed as part of Android SDK installation. See Running Apps on the Android Emulator for more information.

1.1.1. Browser Method

If you are using the FHC command line tool to generate your binary, the output will contain a URL value for example,

http://[your-studio-domain].redhatmobile.com/digman/A/B/C/android~2.2~50~MyApp.apk

This is the download URL of the binary. By navigating to this URL on the device browser, the binary can be downloaded and installed.

Tip

Using a URL shortener like bit.ly makes entering the download URL a lot easier

1.1.2. Dropbox Method

If you have a Dropbox account, there is a Dropbox app available in the Google Play Store. Placing the APK file in your Dropbox folder (on your PC/Mac) will make the file available through the Dropbox app, allowing you to open and install.

1.1.3. Android Tools Method

If you have the android tools installed, you can follow the instructions for sending the APK file to the device over a USB cable.