Step 01: Tools for Developing Apps/Services (Java)
Page Last Updated: 6th October 2011
Downloads required:
- Download Java Standard Edition Development Kit (JDK)
- Filename: jdk-7-windows-i586.exe
- File Size: 79.48 MB
- Link: http://download.oracle.com/otn-pub/java/jdk/7/jdk-7-windows-i586.exe
- How did I get the link? Go to http://www.oracle.com/technetwork/java/javase/downloads/index.html and click on "Java Platform"
- Download Eclipse
- Filename: eclipse-java-indigo-SR1-win32.zip
- File Size: 128 MB
- Link: http://ftp.daum.net/eclipse//technology/epp/downloads/release/indigo/SR1/eclipse-java-indigo-SR1-win32.zip
- How did I get the link?
- Go to www.eclipse.org
- Click on "Downloads"
- Click on "Windows 32 Bit" next to "Eclipse IDE for Java Developers"
- Download Android Development Tools (ADT) Plugin for Eclipse
- Filename: ADT-12.0.0.zip
- File Size: 5.38 MB
- Link: http://dl.google.com/android/ADT-12.0.0.zip
- How did I get the link? Got the Link from http://developer.android.com/sdk/eclipse-adt.html
- Download Android Software Development Kit (SDK)
- Filename: android-sdk_r13-windows.zip
- File Size: 34.7 MB
- Link: http://dl.google.com/android/android-sdk_r13-windows.zip
- How did I get the link? http://developer.android.com/sdk/index.html
- Download Platform Tools
- Filename: platform-tools_r07-windows.zip
- File Size: 15.8 MB
- Link: http://dl-ssl.google.com/android/repository/platform-tools_r07-windows.zip
- How did I get the link? Search for "platform-tools" in http://dl-ssl.google.com/android/repository/repository.xml
- Download Platform
- Filename: android-2.3.3_r02-linux.zip
- File Size: 81.5 MB
- Link: http://dl-ssl.google.com/android/repository/android-2.3.3_r02-linux.zip
- How did I get the link? Search for "2.3.3" in http://dl-ssl.google.com/android/repository/repository.xml
- 2.3.3 is the latest - HTC Desire S is Android 2.3.3
- Download API
- Filename: google_apis-10_r02.zip
- File Size: 62.7 MB
- Link: http://dl-ssl.google.com/android/repository/google_apis-10_r02.zip
- How did I get the link? Search for "<sdk:api-level>10</sdk:api-level>" in http://dl-ssl.google.com/android/repository/addon.xml
- Why "<sdk:api-level>10</sdk:api-level>" - because 2.3.3 requires API Level 10 as per http://dl-ssl.google.com/android/repository/repository.xml
- Download Docs
- Filename: docs-3.2_r01-linux.zip
- File Size: 98.9 MB
- Link: http://dl-ssl.google.com/android/repository/docs-3.2_r01-linux.zip
- How did I get the link? Search for "docs" in http://dl-ssl.google.com/android/repository/repository.xml
- Download Code Samples
- Filename: samples-2.3.3_r01-linux.zip
- File Size: 8.14 MB
- Link: http://dl-ssl.google.com/android/repository/samples-2.3.3_r01-linux.zip
- How did I get the link? No reliable source (HTC Desire S runs Android 2.3.3 so we need samples for this version)
- Download HTC Sync (or OEM USB Drivers for your phone for use with Android Debug Bridge)
- Filename: setup_3.0.5579.exe
- File Size: 146.22 MB
- Link: http://www.htc.com/managed-assets/support/software/htc-sync/setup_3.0.5579.exe
- How did I get the link? From http://www.htc.com/www/help/ or browse for your phone at http://developer.android.com/sdk/oem-usb.html
Installation Steps:
- Install Java Development Kit
- Execute jdk-7-windows-i586.exe and install it.
- Extract Eclipse
- Extract contents of eclipse-java-indigo-SR1-win32.zip to "c:\eclipse-java-indigo-SR1-win32"
- The folder named "eclipse" will be extracted and appear under "c:\eclipse-java-indigo-SR1-win32"
- Create Shortcut to Eclipse
- Use windows explorer and browse to "c:\eclipse-java-indigo-SR1-win32\eclipse"
- Right click eclipse.exe send its shortcut to the desktop
- Rename the short cut from "eclipse.exe - Shortcut" to "Eclipse"
- Extract Android Software Development Kit (SDK)
- Extract contents of android-sdk_r13-windows.zip to "c:\android-sdk_r13-windows"
- The folder named "android-sdk-windows" will be extracted and appear under "c:\android-sdk_r13-windows"
- Extract Platform Tools
- Extract contents of platform-tools_r07-windows.zip to "C:\android-sdk_r13-windows\android-sdk-windows"
- The folder named "platform-tools_r07-windows" will be extracted and appear under "C:\android-sdk_r13-windows\android-sdk-windows"
- Rename "platform-tools_r07-windows" to "platform-tools" such that "C:\android-sdk_r13-windows\android-sdk-windows\platform-tools_r07-windows" becomes "C:\android-sdk_r13-windows\android-sdk-windows\platform-tools"
- Extract Platform
- Extract contents of android-2.3.3_r02-linux.zip to "C:\android-sdk_r13-windows\android-sdk-windows\platforms"
- The folder named "android-2.3.3_r02-linux" will be extracted and appear under "C:\android-sdk_r13-windows\android-sdk-windows\platforms"
- Extract API
- Extract contents of google_apis-10_r02.zip to "C:\android-sdk_r13-windows\android-sdk-windows\add-ons"
- The folder named "google_apis-10_r02" will be extracted and appear under "C:\android-sdk_r13-windows\android-sdk-windows\add-ons"
- Run Eclipse
- Double click on "Eclipse - Java" icon on your desktop
- Select a location to place your workspace folder. You may leave it at the default suggested path
- Check the box "Use this as the default and don't ask again"
- Click on the "Workbench" icon
- Install the ADT Plugin for Eclipse
- Disable Ethernet/WiFi and any other network connection during the installation of ADT Plugin to prevent Eclipse from trying to connect to the internet to verify package information. If your connection firewall or limited for some reason (e.g. firewall or proxy), Eclipse will waste time trying to communicate with its servers without success, so its better to disable WiFi and unplug your Ethernet cable.
- While in Eclipse, click on the "Help" menu and select "Install New Software"
- Click Add, in the top-right corner
- In the Add Site dialog, click Archive
- Browse to and select "ADT-12.0.0.zip"
- Enter a name for the local update site (e.g., "Android Plugin") in the "Name" field.
- Click OK.
- In the Available Software dialog, select the checkbox next to Developer Tools and click Next.
- In the next window, you'll see a list of the tools to be installed. Click Next.
- Read and accept the license agreements, then click Finish.
- Note: If you get a security warning saying that the authenticity or validity of the software can't be established, click OK.
- When the installation completes, restart Eclipse.
- Configuring the ADT Plugin
- While in Eclipse, Select Window > Preferences... to open the Preferences panel
- Select Android from the left panel.
- You may see a dialog asking whether you want to send usage statistics to Google.
- If so, make your choice and click Proceed. You cannot continue with this procedure until you click Proceed.
- Add "C:\android-sdk_r13-windows\android-sdk-windows" as the SDK Location in the main panel
- Click Apply, then OK.
- Close Eclipse.
- Set Tools Path
- Right click "My Computer" and select properties.
- Select "Advanced Settings" Click "Environment Variables"
- In the "System Variables" list, find "Path" and click Edit
- Append "C:\android-sdk_r13-windows\android-sdk-windows\platform-tools" to the text in the Variable value field
- Click OK twice
- Install docs
- Extract contents of docs-3.2_r01-linux.zip to "C:\android-sdk_r13-windows\android-sdk-windows"
- The folder named "docs_r01-linux" will be extracted and appear under "C:\android-sdk_r13-windows\android-sdk-windows"
- Rename "docs_r01-linux" to "docs" such that "C:\android-sdk_r13-windows\android-sdk-windows\docs_r01-linux" becomes "C:\android-sdk_r13-windows\android-sdk-windows\docs"
- Install Code Samples
- Extract contents of samples-2.3.3_r01-linux.zip to "C:\android-sdk_r13-windows\android-sdk-windows"
- The folder named "samples-2.3.3_r01-linux" will be extracted and appear under "C:\android-sdk_r13-windows\android-sdk-windows"
- Rename "samples-2.3.3_r01-linux" to "samples" such that "C:\android-sdk_r13-windows\android-sdk-windows\samples-2.3.3_r01-linux" becomes "C:\android-sdk_r13-windows\android-sdk-windows\samples"
- Install HTC Sync (or your phone's OEM USB Drivers)
- Execute setup_3.0.5579.exe and install it.
References: