Installing Android Development Environment (Eclipse + Android)
Here I will show the following main steps to install the development environment that allows us to start programming on Android!
The programming language used is Java,so you need to have pre-installed (or you have to download) on your computer the latest version of Java.
The main tool we will use is the development IDE of Eclipse;
Eclipse allows us to develop in different languages;you should download the latest version of the program that’s available free to link http://www.eclipse.org/downloads/ (download the latest version of “Eclipse IDE for Java Developers”in accordance with our operating system,ie 32 or 64 bits).
The extracted file is a zip file that will be extracted into your computer preferably in the “Programs”folder.
To start the program by itself in the Eclipse folder and click on the executable eclipse.exe.
The second important step is to install the Android SDK package (you can find links to http://developer.android.com/sdk/index.html ).
For Windows users you can download the executable file,or advice to create a new folder “Android”in “Programs”folder and extract the file .zip in this folder.
Once downloaded the SDK just run the executable “SDK Manager.exe“.
The SDK-manager when launched will be a review of the files already installed on your computer (“Installed packages“) and files available to download (“Available packages“);
proceed with the intallation on your pc of all necessary files found SDK Manager.
Once you download the missing files I recommend you keep open the SKD-Manager and go to the “Virtual devices”section;here by clicking the top right on “New”you can immediately create a virtual environment that you will use later to display a ‘emulation of your applications.
In creating one will be asked various information such as name,level API of Android on which you want to program,the size of the virtual device.
Finish these first two procedures must connect the Eclipse development environment with downloaded files for Android.
Once you open Eclipse must click on the top menu item “Help“,here select “Install new Software“;in the screen that will be opened,you click in the “Work with“ on button “Add”and enter the name of the software as “Android”and as the location the following url:https://dl-ssl.google.com/android/eclipse/.
In the window you should see the software “Developer Tools“ to download,you select all and click “Next”to continue and download and install the plugin.
After this procedure you will need to restart Eclipse.
To check if the process is successful click menu of Eclipse on “File”->”New”->”Project” and among the various types of projects should compare “Android Project”.
To create a first draft Android click “Android Project” and then “Next“;prompted for the name of the new project,the location on the workspace,choosing the API level (choose the same one you previously created a “virtual device“),the application name (eg “androidTest“),the “Package name”(eg “org.example.android“) and activity name (eg “androidTest“);
Clicking on “Finish”will appear in the “Project Expoler”Eclipse your first Android project!!!
To approach the planning of some small example with Android I suggest you looked at the various examples on this link:http://developer.android.com/resources/browser.html?tag=tutorial.
For example,you can start by copying the code proposed by some examples of this site in your project;once you have developed (or copied) code,to see the result just right click on the project,go on “Run As”(or “Degug As”to debug) and click on “Android Application“;
If you own a phone that has Android as the operating system can connect by USB to your PC and if you activate the function Debug (on your phone) when you will run an application from Eclipse you will be asked if you intend to run the application on the “virtual device “previously created,or if you want to run it directly on your phone (in this case,once you execute,the application will be loaded on your phone and you can will also restart the same application after disconnecting the phone).
And now have fun!