Setting the Environment: Using Eclipse and Netbeans for Developing Google Android Apps
written by: Jbeerdev•edited by: Simon Hill•updated: 3/12/2012
In this first part of the series of articles, we will set the environment to start developing own Android applications using Eclipse or Netbeans.
slide 1 of 6
The Google Android platform, offers us a easy and quick way to develop applications for mobile devices. The Google Android web page contains lots of useful information about Android architecture, libraries and source codes. First of all, let's start with the tools we will need to start developing our own Android applications. This page will be our reference page to get all the stuff we need:
We have some tools we can choose to work with for developing Android apps, we can use Eclipse or Netbeans. Both of them are free good IDEs to work with, but we are going to use Eclipse, because its plug-in for Android is more mature than the Netbeans one.
slide 2 of 6
We will need another tool to work with Android. This tool is called the SDK (Software Development Kit), once we have downloaded it and placed it somewhere on the computer (C:/Android/SDK if we are in Windows, for example, or ./home/jbeer/Android/SDK if we use a *nix system). We have to remember where we have placed the SDK, in the next steps we will have to enter the path in the Eclipse/Netbeans environment.
slide 3 of 6
Once we have placed the SDK we will need the Android plug-in for Eclipse. Depending on the version of Eclipse it will be done in a different way:
For Ganymede version:
In the Menu, select "Help" and then "Software Updates".
In the new pop-up window, push the button "Add site ... " and enter the following address and click Ok:
Once this is done, you have to go back to the Updates and Add ons menu. The location we have entered before should appear, click on it, check the "Developer Tools" and click Install.
Follow the steps to install the plugin.
For Europa version
In the Menu, select "Help" , "Software Updates" and then "Find and Install".
Click on New Remote Site
In the new pop-up window, inset a name for the plugging (Android, p.e), and enter its location and click Ok:
One this is done, the new site should appear in the Add ons list. Click on it and check both “Android Developer Tools" and “Android Editor".
Follow the steps to install the plugin.
Hint: If the https://dl-ssl.google.com/android/eclipse/ doest work try "http" instead of "https".
Once we have installed the Eclipse plugin we have to restart the IDE. Now, it's time to point to the plug-in where the SDK is in our system.
In the Menu, “Window", select “Preferences". Select Android from the left panel, click the “Browse" button and locate the SDK directory in your computer, then click OK.
Now we are able to create Android applications on our Eclipse IDE.
slide 4 of 6
If we want to work with Netbeans, we have to download the IDE and install it. Once this is done, the next step is to download the Android plug-in for Netbeans, now called nbandroid.
The best way to install this plug-in, is using the Update Center of Netbeans. In the Menu, enter in "Tools" and then in "Plugins". Here you will be shown a list with all the available plug-ins for Netbeans. We want to add our Android plug-in. For that we have to press “Add" in the settings Tab, and enter the following location:
After installing the Android plug-in, now it's time to Add the Android platform to our Netbeans. In the Menu, “Tools" enter in “Java Platforms" and click in the “Add Platform..." button. Here we will find the “Google Android Platform". In the next window we have to enter the new platform name (Android Platform, p.e) and the location of the SDK in the computer.
Once this is done, we are able to create Android apps in our Netbeans.
slide 5 of 6
In further articles I will show you how to develop an entire application.
slide 6 of 6
If you want to know when new articles are released, subscribe yourself to the Google Android RSS
Otherwise, you can follow my research, articles and work in my profesional twitter: jbeerdev