O'Reilly logo

Beginning Android by Wei-Meng Lee

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

CREATING YOUR FIRST ANDROID APPLICATION

With all the tools and the SDK downloaded and installed, it is now time to start your engine! As in all programming books, the first example uses the ubiquitous Hello World application. This will enable you to have a detailed look at the various components that make up an Android project.

TRY IT OUT: Creating Your First Android Application

codefile HelloWorld.zip available for download at Wrox.com

1. Using Eclipse, create a new project by selecting File ⇒ New ⇒ Project. . . (see Figure 1-20).

image

NOTE After you have created your first Android application, subsequent Android projects can be created by selecting FileNewAndroid Project.

2. Expand the Android folder and select Android Project (see Figure 1-21).

3. Name the Android project as shown in Figure 1-22 and then click Finish.

image

NOTE You need to have at least a period (.) in the package name. The recommended convention for the package name is ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required