Coding With Fun
Home Docker Django Node.js Articles Python pip guide FAQ Policy

Android Eclipse integrated environment


May 21, 2021 Android


Table of contents


Install the Android SDK

You can download the latest version of Android SDK from the official website, Android SDK. If you install the SDK on your Windows machine, you'll find a installer_rXX windows.exe file that you only need to download and run, and you'll start the Android SDK tool installation wizard to guide the entire installation, so you can install the Android SDK tool on your machine as long as you follow the instructions.

This tutorial assumes that you will install the development environment on the Windows 7 operating system.

So let's open the options in the Android SDK Manager, all programs and Android SDK Tools and SDK Manager, and pop up the following window:

Android Eclipse integrated environment

Once you open the SDK Manager, you can start installing other required packages. B y default, it lists the seven packages that need to be installed, but it is recommended to unchep the Android SDK documentation and SDK sample code to reduce installation time. Next, click the installation button to display the following dialog box:

Android Eclipse integrated environment

If you agree to install these packages, select the Accept All option button and click the Install button. Y ou can then let the SDK Manager work on its own until all the packages are installed. T his may take some time, depending on your network connection. When all the packages are installed, turn off the SDK Manager via the button in the upper right corner.

Install the Eclipse IDE

All the examples in this tutorial are written in eclipse IDE. So it is recommended to install the latest version of Eclipse on your machine.

Download http://www.eclipse.org/downloads/ eclipse binary on the latest file for installation. O nce the installation package is downloaded, unziw it to a convenient location. For example, C:\eclipse on Windows, or /usr/local/eclipse on Linux, and set the appropriate PATH environment variable.

You can start Eclipse on a Windows machine by performing the following command, or simply double-clicking eclipse .exe.

%C:\eclipse\eclipse.exe

On Linux, the following command is used:

$/usr/local/eclipse/eclipse

After a successful installation, if all goes well, the following results will be displayed:

Android Eclipse integrated environment

Install the Android Development Tool (ADT) plug-in

This step will help you install the Android Development Tool (ADT) plug-in for Eclipse. O pen Eclipse and select Help, Software Upgrade, and Install New Software. This displays the following dialog box:

Android Eclipse integrated environment

Now use the Add button to add the ADT plug-in as your name, and fill in the https://dl-ssl.google.com/android/eclipse/. T hen click OK to add this location. When you click OK, Eclipse starts searching for plug-ins in a given location and eventually lists the plug-ins found.

Android Eclipse integrated environment

Click Select All to select all the plug-ins listed and click the Next button to guide you through installing ADT tools and other required plug-ins.

Create an Android virtual device

In order to test the Android app, a virtual Android device is required. S o before we start writing code, create an Android virtual device. S tart the Android AVD Manager with Eclipse's menu item "Windows" and "AVD Manager". Click the "New" button to create a new Android virtual device and enter the following information before clicking on the "Create AVD" button.

Android Eclipse integrated environment

If the AVD is created successfully, this means that your Android application development environment is ready. I f you like, close the window with the button in the upper right corner. F inally, restart some computers. B y the time you're done with the final step, you're ready to develop your first Android sample. But before we do, we'll look at some important concepts related to Android application development.