Chapter 1: Introduction to Asynchronous Programming in Android
There are Android applications that work on their own. But most apps retrieve data from or send data to a local database or a backend server. Examples of these include fetching posts from a social network, saving your favorites from a list, uploading an image, or updating your profile information. These tasks and other resource-intensive computations may happen instantly or take a while to finish. Factors such as internet connection, device specifications, and server settings affect how long these operations take.
Long-running operations must not be performed on the main UI thread as the application will be blocked until they are completed. The application might become unresponsive ...
Get Simplifying Android Development with Coroutines and Flows 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.