Thursday 15 December 2011


Step by Step Setup For Android Development Environment





Following are the steps for setting up the basic development environment for Android Development.

The whole set of guidelines are given in the http://developer.android.com/index.html, but I have simplified the same as follows:

1) Download Eclipse Classic Galileo 3.5

http://www.eclipse.org/downloads/

2) Download Android SDK from the location given below (Choose the download as per the OS requirements)

http://developer.android.com/sdk/index.html

After the SDK is successfully downloaded, keep it in a known location as we will require the same in further setup process.

3) Install Android Adt Plugin for Eclipse with following steps:

Start Eclipse, then select Help > Install New Software.

Click Add, in the top-right corner.

In the Add Repository dialog that appears, enter "ADT Plugin" for the Name and the following URL for the Location:
https://dl-ssl.google.com/android/eclipse/

Click OK

Note: If you have trouble acquiring the plugin, try using "http" in the Location URL, instead of "https" (https is preferred for security reasons).

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 downloaded. 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.

Select Window > Preferences... to open the Preferences panel.
Select Android from the left panel.

For the SDK Location in the main panel, click Browse... and locate your downloaded SDK directory.
Click Apply, then OK.


From within Eclipse, select Window > Android SDK and AVD Manager


To download components, use the graphical UI of the Android SDK and AVD Manager to browse the SDK repository and select new or updated components . The Android SDK and AVD Manager installs the selected components in your SDK environment.

Creating Android Virtual Devices:
From the above figure, Select 'Virtual Devices' tab.


In the Virtual Devices panel, you'll see a list of existing AVDs. Click New to create a new AVD.
The Create New AVD dialog appears.


Fill in the details for the AVD.

Give it a name, a platform target, an SD card size, and a skin (HVGA is default). You can also add specific hardware features of the emulated device by clicking the New... button and selecting the feature.

Note: Be sure to define a target for your AVD that satisfies your application's Build Target (the AVD platform target must have an API Level equal to or greater than the API Level that your application compiles against).
Click Create AVD.
Your AVD is now ready and you can either close the SDK and AVD Manager, create more AVDs, or launch an emulator with the AVD by selecting a device and clicking Start.

For the full Set of Details Refer the following link:
http://developer.android.com/guide/developing/devices/managing-avds.html


No comments:

Post a Comment