4 Flag Quiz App
Objectives
In this chapter you’ll:
Use
Fragment
s to make better use of available screen real estate in anActivity
’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 anAssetManager
.Define an animation and apply it to a
View
.Use a
Handler
to schedule a future task to perform on the GUI thread.Use
Toast
s to display messages briefly to the user.Launch a specific
Activity
with an explicitIntent
.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.