9 Address Book App

Objectives

In this chapter you’ll:

  • Use FragmentTransactions and the back stack to dynamically attach Fragments to and detach Fragments from the GUI.

  • Use a RecyclerView to display data from a database.

  • Create and open databases with SQLiteOpenHelper.

  • Use a ContentProvider and a SQLiteDatabase object to interact with data in a SQLite database.

  • Use a ContentResolver to invoke methods of a ContentProvider to perform tasks with a database.

  • Use a LoaderManager and Loaders to perform database access asynchronously outside the GUI thread.

  • Use Cursors to manipulate database query results.

  • Define styles containing common GUI attributes and values, then apply them to multiple GUI components.

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.