Introduction
To develop an application for any programming language or device, the first thing you will
need to do is setup your environment. This involves three pieces of software, an
There are also some other Android specifics you will have to change. So now please follow
the given steps to get your environment up and running on Windows XP.
Eclipse Installation
1. Navigate to Eclipse Downloads and download Eclipse IDE for Java EE Developers to
your desktop.
http://www.eclipse.org/downloads/
2. Extract the file, a folder titled eclipse will be created. Drag that folder ton your
applications folder.
3. Open the folder, and then double-click the application Eclipse, the purple circle.
1. Note: If you get an error stating you don't have Java installed, navigate
to How do I install Java? and follow the simple, once click download and
install.
4. When Eclipse is done starting, it will ask you to select a workplace. You can change it
if you like, but the default location works fine. Click OK.
5. An introduction splash page will open, feel free to browse around if this is your first
time with Eclipse. You can close this when you are done.
http://developer.android.com/sdk/index.html#installingplugin
2. Extract the file, then open the folder. Then open SDK Setup.exe.
3. A terminal window will open for a few seconds, and then Android SDK and AVD
Manager will open.
o Note: If you get this error message: "Failed to fetch URL https://dl-
ssl.google.com/android/repository/repository.xml, reason: HTTPS SSL error.
You might want to force download through HTTP in the settings."
Error message
6. You will now be presented with a list of available SDKs and APIs.
7. Select the versions (both SDK and API) that you will need for your project. I selected
2.0.1 because that is currently what the Droid runs, but feel free to select them all.
8. Click Install Selected
9. A pop-up will show asking if you want to accept the downloads, check Accept All and
then click Install Accepted
10. The files will begin downloading and might take a while. They will install
automatically.
11. Once they are finished installing, click Close.
12. You may now close SDK Setup.exe.
4. Click OK
5. Once Pending... changes to Developer Tools, select that checkbox and click next.
Developer Tools
Security Warning
9. When the Software Updates pop-up displays, click Yes and wait for Eclipse to restart.
Software Updates
Preferences
6. Select one of the versions; I chose Android 2.0.1 and click OK.
7. Select File -> New -> Project.
8. Open the Android folder and select Android Project. Click Next.
9. Fill out the form with the following information:Project name: HelloAndroid
Application name: Hello, Android
Package name: com.example.helloandroid (or your own private namespace)
Create Activity: HelloAndroid
Min SDK Version: 2
10. Select a Build Target, the same as before.
13. To run your project, right-click the HelloAndroid project folder and select Run As ->
Android Application.
14. If all goes well, you should the emulator will open and you will see your first Android
application!
Congratulations! If you made it this far you have developed your first Android application,
from start to finish