Setting up the Android development environment
Setting up the Android development environment

First, you can start Android application development on the following operating systems:
- Microsoft Windows XP or later.
- Mac OS X 10.5.8 or later with an Intel chip.
- Linux systems including GNU C Library 2.7 or later.
Second, all the tools required to develop Android applications are free and can be downloaded online. Below is a list of software needed to start developing Android applications.
- Java JDK 5 or later version
- Android SDK
- Java Runtime Environment (JRE)
- Android Studio
- (Optional) Eclipse IDE for Java developers
- (Optional) Android Development Tools (ADT) Eclipse plugin
The last two components are optional; if you are working on a Windows machine, these components will facilitate the development of Java-based applications. Therefore, let's look at how to set up the required environment.
Install Java Development Kit (JDK)
You can download the latest version of Java from the Oracle Java website: JDKJava SE download. In the downloaded file, find the instructions for installing the JDK and follow the given instructions to install and configure the settings. Finally, set the PATH and JAVA_HOME environment variables to reference the directory containing javac and java, which are usually java_install_dir/bin and java_install_dir, respectively.
If running on Windows, install the JDK in C:\jdk1.6.0_15 and add the following content to the C:\autoexec.bat file:
set PATH=C:\jdk1.6.0_15\bin;%PATH%
set JAVA_HOME=C:\jdk1.6.0_15
You can also right-click "My Computer", select "Properties"-->"Advanced"-->"Environment Variables", and update the PATH value by pressing the "OK" button.
On Linux, if the SDK is installed under /usr/local/jdk1.6.0_15 and you are using C shell, write the following code to the .cshrc file.
setenv PATH /usr/local/jdk1.6.0_15/bin:$PATH
setenv JAVA_HOME /usr/local/jdk1.6.0_15
If you use the Eclipse integrated development environment, it automatically knows where Java is installed.
Android IDE
There are many complex and sophisticated technologies to develop Android applications. Currently, the two main and similar technologies used are as follows: