Wednesday, 4 December 2013

Android Installation

What is Android?
Android is a Linux-based operating system for mobile devices such as Smartphone and tablet computers.

Android SDK installation steps-

Operating Systems
  • Windows XP (32-bit), Vista (32- or 64-bit), or Windows 7 (32- or 64-bit)
  • Mac OS X 10.5.8 or later (x86 only)
  • Linux
Hardware requirements

The Android SDK requires disk storage for all of the components that you choose to install. 
 
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

Development Environments

Eclipse IDE
Eclipse 3.4 (Ganymede) or 3.5 (Galileo)
Download eclipse from-
Other development environments 
 
JDK 5 or JDK 6 (JRE alone is not sufficient)
Apache Ant 1.6.5 or later for Linux and Mac, 1.7 or later for Windows
Not compatible with Gnu Compiler for Java (gcj)

Download jdk 5,6 or 7 from-

Download Android SDK from-
Copy your downloaded package in your drive as,



Set environment for Jdk and androd-sdk-tools








Installing the ADT plug-in
 
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 any trouble acquiring in plugin, try "http" in the URL, instead of "https"
Click OK.

4. 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.
5. 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.
6. Restart Eclipse.
4. Configuring the ADT Plugin

After downloaded ADT the next step is to modify ADT preferences in Eclipse to point to the Android SDK directory-
 
1. Select Window > Preferences... to open the Preferences panel 
2. Select Android from the left panel.  
3. For the SDK Location in the main panel, click Browse... and locate downloaded SDK directory.
4. Click Apply, then OK. 
Adding Android platform 
The last step is to use AVD manager to install various components into 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 <sdk>/platforms/ directory of your SDK; new add-ons are saved in the <sdk>/add-ons/ directory; samples are saved in the <sdk>/samples/android-<level>/; and new documentation is saved in the existing <sdk>/docs/ directory (old docs are replaced). 


 










Now your Android development environment is ready to use.

No comments:

Post a Comment