8.3.7. Manipulating a SQLite Database

The contact information is stored in a SQLite database. According to www.sqlite.org, SQLite is one of the world’s most widely deployed database engines. Each Fragment in this app interacts with a SQLite database via utility class DatabaseConnector (Section 8.9). That class uses a nested subclass of SQLiteOpenHelper (package android.database.sqlite), which simplifies creating the database and enables you to obtain a SQLiteDatabase object (package android.database.sqlite) for manipulating a database’s contents. Database queries are performed with Structured Query Language (SQL) and query results are managed via a Cursor (package android.database).

Get Android™ How to Program, Second Edition 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.