Está en la página 1de 13

OBTAINING THE REQUIRED TOOLS For Developing ANDROID APLLICATIONS:

The following should be installed in the system to work with android:


1. JAVA (jdk8)
2. ANDROID SDK
3. ECLIPSE with ADT
4. CREATING AVD
Assume that JAVA Is Already Installed in the system.
STEP 1: INSTALLING ANDROID SDK
Downloading and Installing the Android SDK:
1. You can download the latest version of the SDK starter package for
your chosen development platform from the Android development
home page at http://developer.android.com/sdk/index.html.
2. The starter package is a ZIP file that contains the latest version of the
Android tools required to download the rest of the Android SDK
packages. Install it by unzipping the SDK into a new folder. Take note
of this location, as you’ll need it later.
3. If you are developing from a Windows platform, an executable
Windows installer is available (and recommended) as an alternative to
the ZIP fi le for installing the platform tools.
(NOTE: installer_r24.4.1-windows.exe is starter SDK PACKAGE)
INSTALL installer_r24.4.1-windows.exe in to some new folder and remind the folder)
4. After completion of installation it will invoke automatically the SDK
MANAGER .

5. Before you can begin development, Configuring the Android SDK Manager.
you need to download at least one SDK platform release. You can do
this on Windows by running the SDK Manager.exe executable.
After opening the SDK MANAGEr.exe it will look like bellow
6. Check the relevant tools, documentation, and platforms you need for
your project. Once you have selected the items you want, click the
Install button to download them. Because it takes a while to download
from Google’s server, it is a good idea to download only what you need
immediately, and download the rest when you have more time.
7. Each version of the Android OS is identified by an API level number. For
example, Android 2.3.3 is level 10 (API 10), while Android 3.0 is level 11
(API 11), and so on. For each level, two platforms are available. For
example, level 14 offers the following:
➤ SDK Platform
➤ Google APIs by Google Inc.
8. The key difference between the two is that the Google APIs platform
contains additional APIs provided by Google (such as the Google Maps
library). Therefore, if the application you are writing requires Google
Maps, you need to create an AVD using the Google APIs platform.
You will be asked to choose the packages to install (see Figure 1-13). Check
the Accept All option and click Install.
The SDK Manager will proceed to download the packages that you have
selected. The installation takes some time, so be patient. When all the
packages are installed, you will be asked to restart the ADB (Android Debug
Bridge). Click Yes.

STEP: 2 DOWNLOAD AND INSTALL ECLIPSE.


DOWN LOAD ECLIPSE BUNDLE BASED ON THE SYSTEM REQUIREMENTS AND
UNZIP IT AND DOUBLE CLICK ON ECLIPSE.EXE FILE TO GET STARTED.
STEP 3: INSTALLING ECLIPSE ADT(ANDROID DEVELOPMENT KIT)
The ADT plug-in for Eclipse simplifies your Android development by
integrating the developer tools, including the Emulator and .class-to-.dex
converter, directly into the IDE, Although you don’t have to use the ADT plug-
in, it can make creating, testing, and debugging your applications faster and
easier.
The ADT plug-in integrates the following into Eclipse:
1. An Android Project Wizard, which simplifies creating new projects and
includes a basic application template.
2. Forms-based manifest, layout, and resource editors to help create,
edit, and validate your XML resources
3. Automated building of Android projects, conversion to Android
executables (.dex), packaging to package fi les (.apk), and installation
of packages onto Dalvik VMs (running both within the Emulator or on
physical devices)
4. The Android Virtual Device manager, which lets you create and
manage virtual devices to host Emulators that run a specific release of
the Android OS and with set hardware and memory constraints.
5. The Android Emulator, including the ability to control the Emulator’s
appearance and network connection settings, and the ability to
simulate incoming calls and SMS messages
6. The Dalvik Debug Monitoring Service (DDMS), which includes port
forwarding, stack, heap, and thread viewing, process details, and
screen-capture facilities
7. Access to the device or Emulator’s fi lesystem, enabling you to navigate
the folder tree and transfer fi les
8. Runtime debugging, which enables you to set breakpoints and view
call stacks
9. All Android/Dalvik log and console outputs

Installing the ADT Plug-In


Install the ADT plug-in by following these steps:
1. Select Help Í Install New Software from within Eclipse.
2. In the Available Software dialog box that appears, click the Add button.

3. In the next dialog, enter a name you will remember (e.g., Android
Developer Tools) into the Name field, and paste the following address
into the Location text entry box:
https://dlssl.google.com/android/eclipse/.

4. Press OK and Eclipse searches for the ADT plug-in. When finished, it
displays the available plug-ins, as shown in FOLLOWING FigureS. Select
it by clicking the check box next to the Developer Tools root node, and
then click Next.
5. Eclipse now downloads the plug-in. When it fi nishes, a list of the
Developer Tools displays for your review. Click Next.
6.

7. Read and accept the terms of the license agreement, and click Next
and then Finish. As the ADT plug-in is not signed, you’ll be prompted
before the installation continues.
7. When installation is complete, you need to restart Eclipse and update the
ADT preferences. Restart and select Window- Preferences
8. Select Android from the left panel.
9. Click Browse, navigate to the folder into which you installed the Android
SDK, and then click Apply. The list updates to display each available SDK
target, as shown in Figure

Click OK to complete the SDK installation.


STEP 4:
Creating Android Virtual Devices (AVDs):
The next step is to create an Android Virtual Device (AVD) to be used for
testing your Android applications. An AVD is an emulator instance that
enables you to model an actual device. Each AVD consists of a hardware profi
le; a mapping to a system image; as well as emulated storage, such as a
secure digital (SD) card.
You can create as many AVDs as you want in order to test your applications
with several different configurations. This testing is important to confirm the
behaviour of your application when it is run on different devices with varying
capabilities.

To create an AVD, select Window ➪ AVD Manager

In the Android Virtual Device Manager dialog (see Figure 1-19), click the New... button to create a
new AVD.

También podría gustarte