From the course: Concurrent Programming with Android: Threads, Workers, and Kotlin Coroutines

Unlock this course with a free trial

Join today to access over 22,600 courses taught by industry experts.

Choices for concurrency in Android apps

Choices for concurrency in Android apps

- [Instructor] This course is all about concurrent programming in Android. And the first question we should answer is, what exactly is concurrency? Concurrency simply means that two or more operations are happening at the same time. The APIs for this are sometimes referred to as concurrent programming APIs, and sometimes says multi threading APIs. They mean basically the same thing. And it's critical in Android that you use concurrent programming in many circumstances. The issue is that the Android user interface that is everything the user sees, runs on a single main thread. And there are certain kinds of operations that if you don't run on a background thread will block the user interface and freeze everything. As Android has evolved over the years, Google has gotten much stricter about certain operations, and now insists that some operations must run in a background thread. For example, if you make a request to the…

Contents