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 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.