
Simplifying Android Development with Coroutines and Flows: Learn how to use Kotlin coroutines and the flow API to handle data streams asynchronously in your Android app
Category
Author
Publication
Packt Publishing
Coroutines and flows are the new recommended way for developers to carry out asynchronous programming in Android using simple, modern, and testable code. This book will teach you how coroutines and flows work and how to use them in building Android applications, along with helping you to develop modern Android applications with asynchronous programming using real data.
The book begins by showing you how to create and handle Kotlin coroutines on Android. You'll explore asynchronous programming in Kotlin, and understand how to test Kotlin coroutines. Next, you'll learn about Kotlin flows on Android, and have a closer look at using Kotlin flows by getting to grips with handling flow cancellations and exceptions and testing the flows.
By the end of this book, you'll have the skills you need to build high-quality and maintainable Android applications using coroutines and flows.
Review
"I have known Jomar for over a decade. He and I met when I was planting the seeds for the Google Developer Groups in the Philippines. It started as a help group for Filipino developers who wanted to learn how to develop apps using Google technology. It was soon called the Google Technology Users Group, and it was eventually renamed the Google Developer Group (GDG) and Jomar, along with the rest of the GDG, have carried the torch for many years.
He has developed several useful applications, such as Sweldong Pinoy, Budget Pinoy, Thirteenth Month, Boto Ko, PHostpaid, Pinoy Jokes, and GDG apps (GDG Watchface and GDG Philippines). He has continued to teach and share his knowledge with developers across the country. This book, where you will learn how to build high-quality and maintainable Android applications using Coroutines and Flows, did not come as a surprise."
--Aileen Apolo-de Jesus, Former Senior Program Manager, Google
About the Author
Jomar Tigcal is an Android developer with over 10 years of experience in mobile and software development. He worked on various stages of app development for small startups to large companies. Jomar has also given talks and conducted training and workshops on Android. In his free time, he likes running and reading. He lives in Vancouver, Canada with his wife Celine.
- Understand how coroutines and flows differ from existing ways
- Apply asynchronous programming in Android with coroutines and flows
- Find out how to build your own coroutines and flows in Android
- Handle, manipulate, and combine data in coroutines and flows
- Handle cancellations and exceptions from coroutines and flows
- Discover how to add tests for your coroutines and flows
- Integrate coroutines and flows into your Android projects
This book is for intermediate-level Android developers who want to level up their Android app-building skills. Familiarity with Android development and basic knowledge of Kotlin are needed to make the most of this book.
- Introduction to Asynchronous Programming in Android
- Understanding Kotlin Coroutines
- Handling Coroutine Cancelations and Exceptions
- Testing Kotlin Coroutines
- Using Kotlin Flows
- Handling Flow Cancelations and Exceptions
- Testing Kotlin Flows