Free Trial

Safari Books Online is a digital library providing on-demand subscription access to thousands of learning resources.


  • Create BookmarkCreate Bookmark
  • Create Note or TagCreate Note or Tag
  • DownloadDownload
  • PrintPrint

7.6. Wrap-Up

In this chapter, you created the Cannon Game app, which challenged the player to destroy a seven-piece target before a 10-second time limit expired. The user aimed the cannon by touching the screen. The cannon fired a cannonball when the user double-tapped the screen.

You learned how to define String resources to represent the format Strings that are used in calls to class Resource’s getString method and class String’s format method, and how to number format specifiers for localization purposes. You created a custom view by extending class SurfaceView and learned that custom component class names must be fully qualified in the XML layout element that represents the component.


  

You are currently reading a PREVIEW of this book.

                                                                                        

Get instant access to over
$1 million worth of books and videos.

  

Start a Free Trial