A3 Obtaining and installing the Android SDK

The Android SDK is available as a free download from a link on the Android home page, at http://code.google.com/android/download.html. SDK installation versions are available for multiple platforms, including Windows, Mac OS X (Intel x86 only), and Linux (i386). Select the latest version of the SDK for the desired platform.

The Android SDK version shown in this appendix is marked 1.0_r1. The SDK will change from time to time as the Android team releases new versions. If you need to upgrade from one version to another, there will be an upgrade document on the Android website.

The Android SDK is a compressed folder download. Download and extract the contents of the compressed folder file to a convenient place on your computer. For example, you might install the SDK to C:\software\google\android-sdk-windows-1.0_r1, as shown in figure A.5.

Si C:\software\gaogle\android-sdk-windows- I.O_ri

File Edit

View Favorites Tods Help

1 »

Qeack

* Ó * ,t

Search Folders

m*

Address

^ C:\softwareteoogte\android-sdk-windows-l .0_rl

dom

Name

Size 1 Type

1 Date Modified ■

Fite and Folder Tasks Other Places Details

■J iRELEASE_NOTES.txt i

1 KB

Text Document

9/22/2003 1:45 PM

13 LICENSE .txt

18 KB

Text Document

9/22/2003 1:45 FM

doojrftentation.html

1 KB

Firefox Document

9/22/2003 1:45 PM

U]androidiar

2,738 KB

Executable Jar File

9/22/2003 1:45 PM

Û tools

File Folder

10/19/2096 11:01 PM

samples

File Folder

9/22/2003 1:45 PM

ij^dDCS

File Folder

9/22/2003 1:45 PM

Figure A.5 The Android SDK installs into a directory on your hard drive.

Figure A.5 The Android SDK installs into a directory on your hard drive.

As you can see from figure A.5, the installation footprint is rather simple. Opening the file documentation.html in your browser launches the SDK's documentation, which is largely a collection of Javadocs enumerating the packages and classes of the SDK; the complete documentation source is found in the docs folder. The file android.jar is the Android runtime Java archive. The samples folder contains a number of sample applications, each of which is mentioned in the documentation. The tools folder contains Android-specific resource compilers and the very helpful adb tool. These tools are explained and demonstrated in chapter 2 of this book.

Both Eclipse and the Android SDK are now installed. It's time to install the ADT plug-in for Eclipse to take advantage of the ADT's powerful features, which will assist in bringing your Android applications to life.

0 0

Post a comment