3. Writing Your First Android Application

You should now have a workable Android development environment on your computer. Hopefully, you also have some Android hardware as well. Now it’s time for you to start writing some Android code.

In this chapter, you learn how to add and create Android projects in Eclipse. You ensure that your Android development environment is set up correctly. You also write and debug your first Android application in the software emulator and on the device—in this case, we show you with the T-Mobile G1.

Testing Your Development Environment

The best way to make sure you configured your development environment correctly is to take an existing Android application and run it.

First, you add one of the ...

Get Android Wireless Application Development now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.