In this article we will install the tools for programming in Android and produce our first application.
If you’re a more experienced developer or already have installed the tools feel free to skip ahead or take a long lunch and be back at 1:00. As I mentionned in Part 1 this series of articles is focused on getting a new developer up to speed with Android and programming in one afternoon.
So here we go;
12:00 Installing the Basics
The first step is to setup your environment for testing and development. We will need to download a couple of tools to begin with. Find the download for your OS and click through the installers on the page.
1. Sun Java JDK 1.5 or 1.6 (Sun calls it 5 or 6, why because marketing said so).
2. Eclipse 3.4 Ganymede
(Note: I didn’t manage to get the SDK installed in Fedora Eclipse version,you might want to try another version if you are using that OS.)
3. And of course, the Android SDK
When installing the tools make sure that you follow the order. There are some dependencies that each will require.
12:30 Configuring Eclipse for Android
Once you have installed all the tools on your system we are ready to install the components that will help you debug and interact with the Android emulator.
Eclipse is configured with its own installer so this task is pretty routine*.
- Click help>>Software Updates
- Click the Available Software tab and select Add Site from the right hand side
- When the dialog box pops up enter the following address
https://dl-ssl.google.com/android/eclipse/
and select OK.
- The google address should appear in the main text column on the left. Select that address. Chose the developer tools and click Install in the top right
- Agree to the terms, download the tools and restart Eclipse.
- Coffee. After all you are working through lunch the least they can do is give you free coffee.
- Once Eclipse restarts, select Window>>Preferences
- Choose Android and select Browse to select your Android install directory from above.
*Eclipse 3.3 has slightly different method to install files. Check here for more details on that process
That’s it. Android is now up and running in your Eclipse environment. We can begin to program our first Application. Not bad for a lunch hour.
Read the rest of this entry »