10. Address Book App

Objectives

In this chapter you’ll:

• Extend ListActivity to create an Activity that consists of a ListView by default.

• Create multiple Activity subclasses to represent the app’s tasks and use explicit Intents to launch them.

• Create and open SQLite databases using a SQLiteOpenHelper, and insert, delete and query data in a SQLite database using a SQLiteDatabase object

• Use a SimpleCursorAdapter to bind database query results to a ListView’s items.

• Use a Cursor to manipulate database query results.

• Use multithreading to perform database operations outside the GUI thread and maintain application responsiveness.

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

Get Android How to Program now with O’Reilly online learning.

O’Reilly members experience live online training, plus books, videos, and digital content from 200+ publishers.