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
Share this Page URL
Help

Chapter 6. Flag Quiz Game App: Assets, AssetManager, Tweened Animations, Han...

6. Flag Quiz Game App: Assets, AssetManager, Tweened Animations, Handler, Menus and Logging Error Messages

Objectives

In this chapter you’ll:

  • Store String arrays in strings.xml.

  • Use the assets folder to store a set of images in subfolders.

  • Use an AssetManager to get a list of all assets in an app.

  • Use random-number generation to vary flag choices.

  • Use a Drawable to display a flag image in an ImageView.

  • Use a Handler to schedule a future action.

  • Use an ArrayList to hold collections of items and a HashMap to hold name–value pairs.

  • Override Activity’s onCreateOptionsMenu method to create a Menu and MenuItems that enable the user to configure the app’s options.

  • Use Android’s logging mechanism to log error messages.


  

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