4. SQLite in Android

Previous chapters discussed general database use and how SQLite works. This information is invaluable when working with databases in most environments. This chapter focuses on working with an SQLite database in Android. It covers some of the tools that can be used to interact with a database, and it introduces the Android APIs that can be used to add database support to an Android app.

Data Persistence in Phones

On Android, there are multiple ways that data can be persisted. For data that is highly structured and needs to be accessed efficiently, persisting data in SQLite may be a good solution. SQLite is not only lightweight, but it also provides fast access to data in the form of SQL queries.

Other methods of persisting ...

Get Android™ Database Best Practices 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.