Installing and Upgrading

There are many places on the Internet that discuss detailed step-by-step instructions on how to install the Android SDK. For example, all the necessary links can be found on the Google website, the general procedure outlined here serves to emphasize the most common installation steps for reference. These steps should be done on a host computer used as the development environment.

1. Install the Java Development Kit (for example, install JDK 6.0 for use with Android 2.1 or above; JDK 5.0 is the minimum version needed for any earlier version of Android).

2. Install Eclipse Classic (for example, version 3.5.2). In the case ofWindows, this just needs to be unzipped in place and is ready to use.

3. Install the Android SDK starter package (for example, version r06). In the case of Windows, this just needs to be unzipped in place and is ready to use.

4. Start Eclipse and select Help ^ Install New Software..., and then type https:// and install the Android DDMS and Android Development Tools.

5. In Eclipse, select Window ^ Preferences... (on a Mac, select Eclipse ^ Preferences) and select Android. Browse to the location where the SDK was unzipped and apply.

6. In Eclipse, select Window ^ Android SDK and AVD Manager ^ Available Packages, and then choose the necessary APIs to install (for example, Documentation for Android SDK,API 8; SDK Platform Android 2.2,API 8; Google APIs by Google Inc.; and Android API 8).

7. From the same Android SDK and AVD Manager menu, create an Android virtual device to run the emulator or install USB drivers to run applications on a plugged-in phone.

8. In Eclipse, select Run ^ Run Configurations... and create a new run configuration to be used with each Android application (or similar for a Debug Configuration). Android JUnit tests can be configured here, too.

Now, the environment should be configured to easily develop any Android application and run on the emulator or an actual Android device.To upgrade to a new version of the SDK, it is simply a matter of selecting Help ^ Software Updates... in Eclipse and choosing the appropriate version.

Character Building Thought Power

Character Building Thought Power

Character-Building Thought Power by Ralph Waldo Trine. Ralph draws a distinct line between bad and good habits. In this book, every effort is made by the writer to explain what comprises good habits and why every one needs it early in life. It draws the conclusion that habits nurtured in early life concretize into impulses in future for the good or bad of the subject.

Get My Free Ebook

Post a comment