Objectives

We will then install and set up effective tools for Android application development. This will include a specially equipped version of Eclipse + an emulator. The emulator we are using - Genymotion - is a third party application not strictly part of the android build tools. However it is considerably faster and more useful than the standard emulator provided with the Android SDK.

Android SDK

This step describes how to download and install

Figure 3: Android installer for windows Figure 4: Android installer Figure 5: Android installer Figure 7: Android installer Figure 7: Android installer Figure 8: Android installer Figure 9: Android installer

Eclipse IDE

This step describes how to download and install

Download Eclipse Luna

Figure 1: Download Eclipse Luna

Install Android SDK Plugin

Configure Android SDK Plugin

Once Eclipse restarts, you must specify the location of your Android SDK directory:

Download SDK Packages

Figure 2: Android SDK Manager icon Figure 3: Android SDK Manager window

Emulator

This step briefly describes how to

Download Genymotion

Register an account with Genymotion.com and download the Free Genymotion emulator. Figure 1: Genymotion Figure 2: Choose Genymotion for your platform

Installing on a Windows platform

The following series of screenshots is indicative of the steps in installing on a Windows platform (collectively referred to as Figure 3): Figure 3: Installing on a Windows platform

Finally, you may be prompted to add a new virtual device as indicated in Figure 4: press the No button. Figure 4: Do not add a new virtual device

Installing on an OSX (Mac) platform

Figure 5: Installing genymotion on OSX (Mac) platform

Genymotion Plugin

To install the Genymotion plugin in Eclipse:

Figure 1: Genymotion icon on toolbar Figure 2: Configuring Genymotion plugin in Eclipse preferences Figure 3: Setting up a Genymotion virtual device

Maps (Phone)

Connect your phone to your computer using the USB cable.

The following apply to a Samsung phone and is not to be taken as applicable to all Android devices.

When you first make a connection you may be presented with a message along the following lines, depending on the software on and the model of your phone:

Attention Unable to find software on your PC that can recognise your device. Service pack 3, Windows Media Player, version 11 or higher or USB driver for Windows or Android file transfoer for Mac OS must be installed (see www.microsoft.com or www.android.com/filetransfer)

When you open www.android.com/filetransfer on a Mac you will be presented with a screen as shown in Figure 1:

Figure 1: Android file transfer

Download and install the file androidfiletransfer.dmg:

Figure 2: On Mac - Download and install androidfiletransfer.dmg

On your phone, open settings and scroll to Debugging. Tick:

Still on settings:

You should receive a notification:

In Package Explorer in Eclipse select MyRent (or any other functioniong app of your choice) and run the menu command Run | Run:

Figure 3: Launch the app.

The Android Device Chooser window should open, displaying the tethered android phone:

Figure 4: Android phone attached

Select the device, in this case samsung-gt_s6810p-... and press OK.

Install Play Store

Following are instructions to install Google Play Store on the emulator.

Browse to Google Apps wiki.rootzwiki.

Figure 1: Download gapps-jb-20130813-signed.zip

Start the Genymotion virtual device:

Figure 2: Start Genymotion device

Drag the gapps zip file onto the virtual device.

Launch a map-enabled app such as MyRent and test that the map facility is now available.

Figure 3: Sample map-enabled app using Google Maps application

Setup summary

Sample Android apps

Download the following apps from the local achive to a temporary folder and, in turn, drag and drop each onto the GenyMotion emulator.

Launch the apps and experiment with their functionality.