1.1 Installing the Tools
The Android software development kit (SDK) works on Windows, Linux,
and Mac OS X. The applications you create, of course, can be deployed
on any Android devices.
Before you start coding, you need to install Java, an IDE, and the
Android SDK.
Java 5.0+
First you need a copy of Java. All the Android development tools require
it, and programs you write will be using the Java language. JDK 5 or 6
is required.
It’s not enough to just have a runtime environment (JRE); you need the
full development kit. I recommend getting the latest Sun JDK SE 6.0
INSTALLING THE TOOLS 18
update from the Sun download site.1 The 32-bit version seems to work
best (see the “32-bit vs. 64-bit” sidebar). Mac OS X users should get the
latest version of Mac OS X and the JDK from the Apple website.
To verify you have the right version, run this command from your shell
window. Here’s what I get when I run it:
C:\> java -version
java version "1.6.0_14"
Java(TM) SE Runtime Environment (build 1.6.0_14-b08)
Java HotSpot(TM) Client VM (build 14.0-b16, mixed mode, sharing)
You should see something similar, with version “1.6.something” or later.
Eclipse
Next, you should install a Java development environment if you don’t
have one already. I recommend Eclipse, because it’s free and because
it’s used and supported by the Google developers who created Android.
The minimum version of Eclipse is 3.3.1, but you should always use
whatever is the most up-to-date production version. Go to the Eclipse
downloads page,2 and pick “Eclipse IDE for Java Developers.” Note that
you need more than just the standard Eclipse SDK “classic” platform.
Download the package into a temporary directory, unpack it (usually
this is just a matter of double-clicking it), and move the entire unpacked
directory to a permanent location (like C:\Eclipse on Windows or /Applications/
Eclipse on Mac OS X).
If you don’t want to use Eclipse (there’s always one in every crowd),
support for other IDEs such as NetBeans and JetBrains IDEA is available
from their respective communities. Or if you’re really old-school,
you can forgo an IDE entirely and just use the command-line tools.3
The rest of the book will assume you’re using Eclipse, so if you’re not,
you’ll need to make adjustments as necessary.
Android SDK Starter Package
Starting with Android 2.0, the Android SDK has been broken into two
parts: the SDK Starter Package and the SDK Components. First, use
your web browser to get the starter package. The Android download
To make it go faster, you can accept or reject the individual components
separately instead of installing them all.
If you get an HTTPS SSL error, then cancel the window and select Settings
from the main SDK and AVD Manager window. Select the option
Force https:// sources to be fetched using http://, and then click Save
& Apply. Exit the Setup program and start it again.
The next step is to start Eclipse and configure it.
The Rest of the steps can be seen in the downloaded book form this link
Try coming up to speed from page 19 to 28 .
If this is done we can start up with programming .
This week aim is to have a working setup and that means ur setup should be updated till page 28