For most of the testing tools I will be presenting on this blog, you will need to install and set up both the Eclipse IDE and Android SDK.
Here are the steps (screenshots to follow soon):
- Download the Eclipse IDE from http://eclipse.org/
- Create a new workspace for your trials – better not to mess up existing projects 🙂
- If you don’t already have the Android SDK, you should download and install it – see http://developer.android.com/sdk/index.html
- The Android SDK comes pretty “bare-bones” so you need to install the various API versions or 3rd party add-ons eg. add-ons for Samsung devices (eg. Galaxy S) – see http://developer.android.com/sdk/adding-components.html
- Install the ADT (Android Developer Tools) plugin for Eclipse. See http://developer.android.com/sdk/eclipse-adt.html
- You will need to create a few AVDs (Android Virtual Devices) by doing the following: go to Window->Android SDK and AVD Manager; Click on “New”; Choose a name, target (eg. API level 10), SD card size (eg. 100Mb). See http://developer.android.com/guide/developing/devices/managing-avds.html for more info on AVD options.
- Open up the Android SDK and AVD Manager either from Eclipse (Window->Android SDK and AVD Manager) or running “./android” in AndroidSDK/tools
- Select “Available Packages” and select “Android Repository”
- Select Samples for SDK API XX. Select the appropriate one for your SDK installation.
- Add the NotePad sample app to your workspace ie. File->New->Project->Android Project then click on “Next”
- Select “Create project from existing source” and select the location of NotePad under AndroidSDK/samples/android-XX.
- Test out the app by Selecting the NotePad project->Right click->Run As->Android Application