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.
This step describes how to download and install
Android Software Development Kit (SDK)
Download the latest Android SDK for an existing IDE and save to a temporary folder.
In the case of OSX (Mac) expand the Android SDK to a suitable location.
This step describes how to download and install
Download Eclipse Luna
Install Android SDK Plugin
In the Add Repository dialog that appears, enter "ADT Plugin" for the Name and the following URL for the Location:
https://dl-ssl.google.com/android/eclipse/
Click OK.
Read and accept the license agreements, then click Finish.
If you get a security warning saying that the authenticity or validity of the software can't be established, click OK.
Configure Android SDK Plugin
Once Eclipse restarts, you must specify the location of your Android SDK directory:
Download SDK Packages
The manager will open and be something similar to that depicted in Figure 3.
As a minimum when setting up the Android SDK, you should download the latest tools and Android platform:
This step briefly describes how to
Download Genymotion
Register an account with Genymotion.com and download the Free Genymotion emulator.
The following series of screenshots is indicative of the steps in installing on a Windows platform (collectively referred to as Figure 3):
Finally, you may be prompted to add a new virtual device as indicated in Figure 4: press the No button.
Download and install VirtualBox (if it is not already installed).
Double click on the downloaded dmg installer file file (example genymotion-2.2.2.dmg).
To install the Genymotion plugin in Eclipse:
In the Add Repository dialog that appears, enter Genymotion for the Name and the following URL for the Location:
http://plugins.genymotion.com/eclipse
Click OK.
Read and accept the license agreements, then click Finish.
If you get a security warning saying that the authenticity or validity of the software can't be established, click OK.
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:
Download and install the file 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:
.
The Android Device Chooser window should open, displaying the tethered android phone:
Select the device, in this case samsung-gt_s6810p-... and press OK.
Following are instructions to install Google Play Store on the emulator.
Browse to Google Apps wiki.rootzwiki.
Start the Genymotion virtual device:
Drag the gapps zip file onto the virtual device.
Press OK.
Play Services should now be installed on the virtual device.
Click on the Play Store icon
Launch a map-enabled app such as MyRent and test that the map facility is now available.
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.