Sams Teach Yourself Java™ in 24 Hours (Covering Java 7 and Android)

(singke) #1
ptg7068951

346 HOUR 24:Writing Android Apps


For a simple app like this one, an early target is OK. Choose
Android 2.2.


  1. In the Application name field, give the app the name Saluton
    Mondo!. This name will be displayed on Android devices.

  2. The Package name field should contain the name of the Java package
    to which the classes of this app belong. Enter
    org.cadenhead.android.

  3. The Create Activity checkbox indicates whether the new app will be
    created with an Activity class. An activity is a task the app can
    accomplish. Keep this checkbox selected and enter SalutonActivity
    in the adjacent text field.
    10.Click Finish. The new app iscreated and a SalutonMondo item
    appears in the Package Explorer pane.


Exploring a New Android Project
A new Android project consistsof around 20 files and folders that always
are organized the same way in an Android app. There might be more files

FIGURE 24.1
Creating a new Android projectin
Eclipse.

Free download pdf