Summary and Next Steps
We’ve moved outside of our app and are bringing information in. Almost every app we work on nowadays will have some kind of API or web service component, so know you’ll be doing things like this with most modern Android development.
Having a backing Room database to go with our APIs made our app more resilient since we can bring data back to our users even when they don’t have any connection. By taking a bit of care in how we call our services, we can give users a solid offline experience.
Using coroutines enabled both of those parts by allowing us to easily call both the APIs and the database without interrupting the user or UI. Rather than having to add a bunch of extra code to support asynchronous logic, coroutines ...
Get Kotlin and Android Development featuring Jetpack 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.