Android-Development.org  
     
     



How to build Android development environment?

1.Download and Install the Android SDK

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

Find SDK Manager.exe And install it!






In order to run tools from the command line,you need to Append the full path to the tools directory.




2.Download and Install Eclipse


Go to http://www.eclipse.org,and download the Eclipse software.



The Eclipse workbench:

3.Install the Android Development Tools (ADT)

  1. Help menu--Software Updates. .
  2. Click Available Software.
  3. Click Add Site.
  4. Enter the following URL into the Location field and click OK: 
    https://dl-ssl.google.com/android/eclipse/
  5. Click Install.




4.Test Your Installation

First, you must create at least one Android Virtual Device (AVD) to which you can deploy applications. Note that AVDs can be re-used; you need not create a new one each time you want to run an application.

  1. Open a Command Prompt (a Terminal window).
  2. Change to the Android SDK Tools directory. For instance: 
    cd \android-sdk-windows-1.5_r1\tools
  3. Enter the following command to create an AVD named "android1_5": 
    android create avd -n android1_5 -t 3

    The "-t 3" specifies that the target device runs Android 1.5 (API level 3) and supports the Google APIs; to create a target running Android 1.1, you would use "-t 1" instead.

Now, from within Eclipse, you can create and run an application:

  1. Click File > New > Other. From the list of wizards, select Android > Android Project and click Next. 
    The New Android Project dialog appears.
  2. Fill out the dialog as shown below (making sure to select Android 1.5 as the Build Target), and click Finish. 

The project is created and added to the Package Explorer.

Right-click HelloAndroid in the Package Explorer, and select Run As > Android Application




     
     
     
     
www.android-development.org