A (175)

(Tuis.) #1

558 CHAPTER 15: Developing for Android Wearable Devices


In the first Create New Android Application dialog, shown in Figure 1 5- 4 on the left, name your
application and project EarthTime and your package absolute.beginners.earthtime. Set the three
SDK selection drop-down menus to the API Level 16 (Android 4.1) that the Neptune Pine smartwatch
uses. Click the Next button, and accept the default checkboxes in the Configure Project dialog. This
will create your launcher icon, a MainActivity Activity subclass, and the Project folder hierarchy in the
Eclipse IDE workspace (Package Explorer pane), also shown in Figure 1 5- 4 , this time on the right side
of the figure. Again, click the Next button to advance to the next dialog in the series.


Figure 15-4. Select API Level 16 for a Neptune Pine app and accept the defaults in the Configure Project dialog


Figure 15-5. Accept the default values for the Configure Launcher Icon, Create Activity, and Blank Activity dialogs


Accept the defaults in the Configure Launcher Icon dialog, shown in Figure 15-5 on the left, as you
will create your custom EarthTime icon later. Again, click the Next button to advance to the Create
Activity dialog, and select the Blank Activity option shown in the middle section of Figure 15-5.
Click the Next button to advance to the Blank Activity dialog, and accept the default settings shown
on the right side of Figure 15-5. Finally, click the Finish button. Now you are ready to create your
EarthTime application’s UI design for the Neptune Pine!

Free download pdf