..


Sponsored Links

We install the Eclipse ADT

Once the SDK configuration shown in the previous chapter, we are ready to embrace the ADT within the Eclipse.

Let us go then to launch Eclipse and look forward to a few seconds for you to open the application for inclusion in the workspace. The workspace is nothing but a folder where we will put our plans. To be clear if we put the My Documents folder as a workspace AutoMet all the projects we're going to enter will be placed within that folder.
So we select the workspace you want and click on Ok.

In order to incorporate the ADT, in the navigation menu of Eclipse, click on Help and then click Install New Software. The window that opens is the window from which you can instal all the plug-in for Eclipse, not just to develop applications for Android.
Work with the field insert the following link: https://dl-ssl.google.com/android/eclipse/ and click the Add button.

Installing the Android Eclipse plug-in
And 'sufficinete now follow the installation procedure to incorporate the new software within Eclipse.

The installation may take a few minutes (depending on the speed of your Internet connection) and once finished, when Eclipse will require us to be restarted, we perform a reboot.

At this point we have almost finished the preparation of our development environment. Once opened click on Eclipse and Eclipse then preferences.

Eclipse Preferences
So let's move in the Android in the left menu and focus our attention on the SDK Location field. In this field you must enter the path to the unzipped SDK. For convenience, we recommend you call the folder Android SDK unpacked and put this folder in the Eclipse.
Once you have entered the correct path to the folder of the SDK, you can choose all of the SDK that we use. When finished, simply restart Eclipse to re-activate any changes made.

Now we have finished the preparation of our development environment. As we have seen the installation of all packages and configurations of software requires a little 'time and it is not obvious. We recommend the reader to follow step by step how to install evittare order to make a mistake whose correction potrebe be difficult.

And 'now necessary to verify, in a practical way, the installation of all the packages have been successful. In the Eclipse menu click on File then New and then click Project. If Eclipse configurations have been performed correctly we can find, between the hierarchy of folders, folder Android.

Verify the presence of templates in Eclipse Android

At this point select Android Project and click Next. In the window that we are going to set the value of the fields as follows:

  • Project Name: call our project "HelloWorld"
  • Built Target: you can choose how we see, in this field, the SDK available. Select Android 2.2 (most current) in accordance with the version of virtual device that we created during installation.
  • Application Name: we will call our application "HelloWorldOnAndroid"
  • Package Name: Displays the package where we'll go to work. Insert in this field the string "MrWebMaster.android" (obviously the name of free choice is just that there are two names separated by a dot)
  • Create Activity: in the next chapters we will see plenty of what is an Activity. For the moment we put in this field the string "HelloAndroid"
  • Min SDK: This field is the API version of our SDK. As we can see if we select as SDK version 2.2 should insert in this field with the value 8.

Click Finish, and expect the project to be created. In the left window, where all projects are located, select the one you just created and click on Run. If the emulator will automatically launch also means that the procedure for installing and configuring the software has been carried out correctly.

Help develop applications for Android
E-Learning
AutoCAD (eBook) AutoCAD (eBook)
Creation of architectural structures. At only 29 €.
Java (Course) Java (Course)
OOP Programming in Java SUN. -15% Discount until 12/10/2011.
Ruby and Ruby on Rails (Course) Ruby and Ruby on Rails (Course)
Create software and Web applications with Ruby and RoR. From 39 €.
Sponsored Links