4 Flag Quiz App


In this chapter you’ll:

  • Use Fragments to make better use of available screen real estate in an Activity’s GUI on phones and tablets.

  • Display a settings icon on the app bar to enable users to access the app’s user preferences.

  • Automatically manage and persist an app’s settings via a PreferenceFragment.

  • Modify key–value pairs settings via a SharedPreferences.Editor.

  • Organize image resources in the app’s assets subfolders and manipulate them with an AssetManager.

  • Define an animation and apply it to a View.

  • Use a Handler to schedule a future task to perform on the GUI thread.

  • Use Toasts to display messages briefly to the user.

  • Launch a specific Activity with an explicit Intent.

  • Use collections from the java.util package. ...

Get Android How to Program, 3/e now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.