Simplifying Android Development with Coroutines and Flows
eBook - ePub

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

  1. 164 pages
  2. English
  3. ePUB (mobile friendly)
  4. Available on iOS & Android
eBook - ePub

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

About this book

Get to grips with asynchronous programming in Android using simple, modern, and testable code through Kotlin coroutines and flow

Key Features

  • Find out how to improve app performance with Kotlin coroutines
  • Discover the new recommended ways to use Kotlin coroutines and flows
  • Learn the basics of asynchronous programming, along with an overview of coroutines and flow

Book Description

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.

What you will learn

  • 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

Who this book is for

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.

Frequently asked questions

Yes, you can cancel anytime from the Subscription tab in your account settings on the Perlego website. Your subscription will stay active until the end of your current billing period. Learn how to cancel your subscription.
At the moment all of our mobile-responsive ePub books are available to download via the app. Most of our PDFs are also available to download and we're working on making the final remaining ones downloadable now. Learn more here.
Perlego offers two plans: Essential and Complete
  • Essential is ideal for learners and professionals who enjoy exploring a wide range of subjects. Access the Essential Library with 800,000+ trusted titles and best-sellers across business, personal growth, and the humanities. Includes unlimited reading time and Standard Read Aloud voice.
  • Complete: Perfect for advanced learners and researchers needing full, unrestricted access. Unlock 1.4M+ books across hundreds of subjects, including academic and specialized titles. The Complete Plan also includes advanced features like Premium Read Aloud and Research Assistant.
Both plans are available with monthly, semester, or annual billing cycles.
We are an online textbook subscription service, where you can get access to an entire online library for less than the price of a single book per month. With over 1 million books across 1000+ topics, we’ve got you covered! Learn more here.
Look out for the read-aloud symbol on your next book to see if you can listen to it. The read-aloud tool reads text aloud for you, highlighting the text as it is being read. You can pause it, speed it up and slow it down. Learn more here.
Yes! You can use the Perlego app on both iOS or Android devices to read anytime, anywhere — even offline. Perfect for commutes or when you’re on the go.
Please note we cannot support devices running on iOS 13 and Android 7 or earlier. Learn more about using the app.
Yes, you can access Simplifying Android Development with Coroutines and Flows by Jomar Tigcal in PDF and/or ePUB format, as well as other popular books in Computer Science & Application Development. We have over one million books available in our catalogue for you to explore.

Information

Table of contents

  1. Simplifying Android Development with Coroutines and Flows
  2. Foreword
  3. Preface
  4. Part 1 – Kotlin Coroutines on Android
  5. Chapter 1: Introduction to Asynchronous Programming in Android
  6. Chapter 2: Understanding Kotlin Coroutines
  7. Chapter 3: Handling Coroutine Cancelations and Exceptions
  8. Chapter 4: Testing Kotlin Coroutines
  9. Part 2 – Kotlin Flows on Android
  10. Chapter 5: Using Kotlin Flows
  11. Chapter 6: Handling Flow Cancelations and Exceptions
  12. Chapter 7: Testing Kotlin Flows
  13. Other Books You May Enjoy