ANDROID APPLICATION
Installing the SDK:
1.Preparing Your Development Computer:
Before getting started with the Android SDK, take a moment to confirm that your development computer meets the System Requirements.
2.Downloading the SDK Starter Package:
If you haven't already, get the latest version of the SDK starter package .
If you downloaded a .zip or .tgz package (instead of the SDK installer), unpack it to a safe location on your machine. By default, the SDK files are unpacked into a directory named android-sdk-
If you downloaded the Windows installer (.exe file), run it now and it will check whether the proper Java SE Development Kit (JDK) is installed (installing it, if necessary), then install the SDK Tools into a default location (which you can modify).
3.Installing the ADT Plugin for Eclipse:
Android offers a custom plugin for the Eclipse IDE, called Android Development Tools (ADT), that is designed to give you a powerful, integrated environment in which to build Android applications.
Eclipse 3.5 (Galileo) and 3.6 (Helios)
Start Eclipse, then select Help > Install New Software....
1. Click Add, in the top-right corner.
2. 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/
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.
3. In the Available Software dialog, select the checkbox next to Developer Tools and click Next.
4. In the next window, you'll see a list of the tools to be downloaded. Click Next.
5. Read and accept the license agreements, then click Finish.
6. When the installation completes, restart Eclipse.
Configuring the ADT Plugin:
Once you've successfully downloaded ADT as described above, the next step is to modify your ADT preferences in Eclipse to point to the Android SDK directory:
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.
4.Adding Platforms and Other Components:
The last step in setting up your SDK is using the Android SDK and AVD Manager (a tool included in the SDK starter package) to download essential SDK components into your development environment.
If you used the Windows installer, when you complete the installation wizard, it will launch the Android SDK and AVD Manager with a default set of platforms and other components selected for you to install. Simply click Install to accept the recommended set of components and install them.
You can launch the Android SDK and AVD Manager in one of the following ways:
From within Eclipse, select Window > Android SDK and AVD Manager.
On Windows, double-click the SDK Manager.exe file at the root of the Android SDK directory.
To download components, use the graphical UI of the Android SDK and AVD Manager, shown in below and to browse the SDK repository and select new or updated components. The Android SDK and AVD Manager will install the selected components in your SDK environment.
The Android SDK and AVD Manager's Available Packages panel, which shows the SDK components that are available for you to download into your environment.
Available Components:
SDK Tools
SDK Platform-tools
Android platforms
USB Driver for Windows
Samples
Documentation
No comments:
Post a Comment