6
Using the Room Database and Testing
Android applications can benefit significantly from storing data locally. The Room persistence library harnesses the power of SQLite. In particular, Room offers excellent benefits for Android developers. Furthermore, Room offers offline support, and the data is stored locally. In this chapter, we will learn how to implement Room, a Jetpack Library.
In this chapter, we’ll be covering the following recipes:
- Implementing Room in your applications
- Implementing Dependency Injection in Room
- Supporting multiple entities
- Migrating existing SQL database to Room
- Testing your local database
It is also important to mention there are a couple more libraries are used with Room – for example, RxJava and Paging integration. ...
Get Modern Android 13 Development Cookbook 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.