Sunday, 20 January 2013

Android SDK Installation and Usage – PART 2

Downloading Android Starter package
Once you have your system ready you need to download the Android Starter package.  The starter package is not a full development environment — it includes only the core SDK Tools, which you can use to download the rest of the SDK components. You can get the latest version of the SDK starter package from the
Link –

After downloading, unpack the Android SDK archive to a safe location on your machine. Make a note of the name and location of the unpacked SDK directory on your system — you will need to refer to the SDK directory later, when setting up the ADT plugin or when using the SDK tools.
On Windows, right-click on My Computer, and select Properties. Under the Advanced tab, hit the Environment Variables button, and in the dialog that comes up, double-click on Path (under System Variables). Add the full path to the
directory to the path.
Installing the ADT plug-in
ADT has been created for Android to ease the development of applications using an integrated system for development, compiling and signing and transferring to an android device.  It helps us quickly integrate java code with Android API and create applications with it. To simplify ADT setup, we recommend installing the Android SDK prior to installing ADT. When your Eclipse and Android SDK environments are ready, continue with the ADT installation as described in the steps below.
  1. Start Eclipse, then select Help > Install New Software.
  2. In the Available Software dialog, click Add….
  3. In the Add Site dialog that appears, enter a name for the remote site (for example, “Android Plugin”) in the “Name” field.
In the “Location” field, enter this URL:
If you have trouble acquiring the plugin, you can try using “http” in the URL, instead of “https” (https is preferred for security reasons.
Click OK.
  1. Back in the Available Software view, you should now see “Developer Tools” added to the list. Select the checkbox next to Developer Tools, which will automatically select the nested tools Android DDMS and Android Development Tools. Click Next.
  2. In the resulting Install Details dialog, the Android DDMS and Android Development Tools features are listed. Click Next to read and accept the license agreement and install any dependencies, then click Finish.
  3. Restart Eclipse.
Configuring the ADT Plugin
Once you’ve downloaded ADT the next step is to modify your ADT preferences in Eclipse to point to the Android SDK directory:
  1. Select Window > Preferences… to open the Preferences panel (Mac OS X: Eclipse > Preferences).
  2. Select Android from the left panel.
  3. For the SDK Location in the main panel, click Browse… and locate your downloaded SDK directory.
  4. Click Apply, then OK.
Adding Android platform
The last step is to use AVD manager to install various components into you development environment.

5. Launching from Eclipse/ADT

If you are developing in Eclipse and have already installed the ADT Plugin, follow these steps to access the Android SDK and AVD Manager tool:
  1. Open Eclipse
  2. Select Window > Android SDK and AVD Manager.
  3. Select Available Packages in the left panel. This will reveal all of the components that are currently available for download from the SDK repository.
  4. Select the component(s) you’d like to install and click Install Selected.
  5. Verify and accept the components you want and click Install Accepted. The components will now be installed into your existing Android SDK directories.
New platforms are automatically saved into the
directory of your SDK; new add-ons are saved in the
directory; samples are saved in the
; and new documentation is saved in the existing
directory (old docs are replaced).


Post a Comment