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 O’Reilly online learning.

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