Monday, January 10, 2011

Android installation


Software requirement for Android

1)      First check the system requirement for install the Android sdk for hardware and software supported or not.
2)      Also install the JDK 5.0 or 6.0  and Eclipse v 3.4 or 3.5.
3)      Eclipse JDT Plugin.

Hardware requirements
The Android SDK requires disk storage for all of the components that you choose to install. The table below provides a rough idea of the disk-space requirements to expect, based on the components that you plan to use.
Component type
Approximate size
Comments
SDK Tools
50 MB
Required.
Android platform (each)
150 MB
At least one platform is required.
SDK Add-on (each)
100 MB
Optional.
USB Driver for Windows
10 MB
Optional. For Windows only.
Samples (per platform)
10M
Optional.
Offline documentation
250 MB
Optional.
Note that the disk-space requirements above are in addition to those of the Eclipse IDE, JDK, or other prerequisite tools that you may need to install on your development computer.

Supported Operating Systems

·        Windows XP (32-bit) or Vista (32- or 64-bit)
·        Mac OS X 10.5.8 or later (x86 only)
·        Linux (tested on Linux Ubuntu Hardy Heron)
64-bit distributions must be capable of running 32-bit applications. For information about how to add support for 32-bit applications, see the Ubuntu Linux installation notes.

Note: If any case you have not Sdk starter package please download and install the sdk starter package





Install the ADT Plugin for Eclipse
·        If you are developing in Eclipse, set up a remote update site at https://dl-ssl.google.com/android/eclipse.
·        Install the Android Development Tools (ADT) Plugin, restart Eclipse, and set the Android preferences in Eclipse to point to the SDK install location.
·        For detailed instructions, see  http://developer.android.com/sdk/eclipse-adt.html
Downloading the ADT  Plugin and install  
For Eclipse  3.4
  1. Start Eclipse, then select Help > Software Updates.... In the dialog that appears, click the Available Software tab.
  2. Click Add Site...
  3. In the Add Site dialog that appears, enter this URL in the "Location" field:
https://dl-ssl.google.com/android/eclipse/
Note: If you have trouble acquiring the plugin, try using "http" in the Location URL, instead of "https" (https is preferred for security reasons).
Click OK.
  1. Back in the Available Software view, you should see the plugin listed by the URL, with "Developer Tools" nested within it. Select the checkbox next to Developer Tools and click Install...
  2. On the subsequent Install window, "Android DDMS" and "Android Development Tools" should both be checked. Click Next.
  3. Read and accept the license agreement, then click Finish.
  4. Restart Eclipse.
For Eclipse 3.5
  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:
https://dl-ssl.google.com/android/eclipse/
Note: 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 successfully downnloaded ADT as described above, 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.
Add Android Platforms and other components to your sdk
Use the Android SDK and AVD Manager and included sdk starter package and add other component to your sdk.
Launch the android sdk and execute the sdk setup.exe at the root of the SDK Directory and On Mac os or linux execute the android tool in the <sdk>/tools/ folder.

Updating the ADT Plugin

To update the ADT plugin to the latest version, follow these steps:
  1. Select Help > Software Updates > Find and Install….
  2. Select Search for updates of the currently installed features and press Finish.
  3. If any update for ADT is available, select and install.
Alternatively:
  1. Select Help > Software Updates > Manage Configuration.
  2. Navigate down the tree and select Android Development Tools <version>
  3. Select Scan for Updates under Available Tasks.

How-To Use Eclipse To Develop Android Applications

In order to begin development on your Android applications you will first need to create a new Android project and then configure a launch configuration.

Configuration For Eclipse

In order to be able to run and debug your own Eclipse applications you must first create a launch configuration. Simply, a launch config is used to specify which project to launch, which activity to start and the specific emulation options to use.
To create a launch configuration for the application, please see the following steps:
1. Select Run > Open Run Dialog… or Run > Open Debug Dialog… as appropriate.
2. In the project type list on the left, right-click Android Application and select New.
3. Enter a name for your configuration.
4. On the Android tab, browse for the project and Activity to start.
5. On the Emulator tab, set the desired screen and network properties, as well as any other emulator startup options.
6. You can set additional options on the Common tab as desired.
7. Press Apply to save the launch configuration, or press Run or Debug
Installing the Android SDK.
To add /tools:

Linux

  1. Edit the ~/.bash_profile or ~/.bashrc files looking for a line that sets the PATH variable.
  2. Add the full path location to your $SDK_ROOT/tools location for the PATH variable.
  3. If no PATH line exists you can add the line by typing the following:
  4. export PATH=${PATH}:<path to your $SDK_ROOT/tools>

Mac OS X

  1. In the home directory locate the .bash_profile and locating the PATH variable add the location to your $SDK_ROOT/tools folder.

Windows XP / Vista

  1. Right click on the My Computer icon and select the properties tab.
  2. Select the Advanced tab and click the Environment Variables button.
  3. In the new dialog box dowble-click on Path (located under System Variables) and type in the full path location to the tools directory.
The Android SDK also requires a suitable development environment to work in, here’s the installation guides for each of the supported environments.

No comments:

Post a Comment