What is Android?
Android is a software stack for mobile devices that includes an operating system, middleware and key applications. The Android SDK provides the tools and APIs necessary to begin developing applications on the Android platform using the Java programming language.
Below are the steps to prepare the Android environment before really getting into the development:
Step 1. Download Eclipse
1.1 click Eclipse Classic
1.2 save the .zip file and extract it to your preferred location
Image may be NSFW.
Clik here to view.
Step 2. Installing Android SDK
2.1 start eclipse by clicking on the eclipse application extracted as shown in the above image.
2.2 now click on Help->Install New Software… option which will launch the below window:
Image may be NSFW.
Clik here to view.
2.3 now put https://dl-ssl.google.com/android/eclipse/ under “Work with” option and click on Add button.
2.4 type name ‘android’ in the new popup window and click OK
Image may be NSFW.
Clik here to view.
2.5 select All components and click Next
Image may be NSFW.
Clik here to view.
2.6 Click next in the next screen and then select “I Accept the terms…” and click Finish
Image may be NSFW.
Clik here to view.
the new window will popup to start downloading of the SDK ad shown below:
Image may be NSFW.
Clik here to view.
2.7 click OK on any warning message window
Image may be NSFW.
Clik here to view.
2.8 restart the eclipse
Image may be NSFW.
Clik here to view.
2.9. eclipse restart done and a new window shown to select where to install the SDK
Image may be NSFW.
Clik here to view.
select the location and click Finish
2.10 have patience, the installation step will take a while to download Android SDK as well as Google APIs.
Eclipse will now look like this…
Image may be NSFW.
Clik here to view.
2.11 make sure things are installed correctly.
click on Window->Preferences->Android
the details should show what you have just downloaded
Image may be NSFW.
Clik here to view.
Step 3. creating Android device
Android emulator runs on a specific device type. There are lots of android devices available on market.
The AVD Manager (AVD – android virtual device) have almost all of them configured. What you need to do is to create one of them in AVD Manager for your testing purposes. You can always create different device types and test the application before publishing to the android market.
Click on Windows->AVD Manager
Image may be NSFW.
Clik here to view.
Now click on New and fill the device information and click Create Device
Image may be NSFW.
Clik here to view.
Image may be NSFW.
Clik here to view.
At this moment, the eclipse is setup with the Android SDK and it is ready to be used.
Add-On: how to download and install
different version of the Android SDK?
So far we know that SDK version is used in creating the virtual device (using AVD Manager mentioned in Step 3 above). If there is a requirement to test the application on different device, then you need to make sure you have that version of the SDK available in your system. In order to download the new version, do below:
1. click Windows->Android SDK Manager
2. select required packages and then click “Install *** packages…”
3. in the next window, click on “Accept all” and click Install button
it will take a while to download and setup new SDK
In our next tutorial, we will go through the steps and create a sample application from scratch.
put your comments in case you have any questions for me to answer about these steps.
reference: http://developer.android.com/index.html
Android website have steps to follow in order to setup the SDK and start using it in eclipse or out of eclipse.
1. Preparing Your Development Computer
2. Downloading the SDK Starter Package
3. Installing the ADT Plugin for Eclipse
4. Adding Platforms and Other Components
1. Available Components
2. Recommended Components
5. Exploring the SDK (Optional)
Next Steps
Troubleshooting