O'Reilly logo

Android in Practice by Michael Galpin, Charlie Collins, Matthias Kaeppler

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

Chapter 6. Threads and concurrency

In this chapter

  • Creating and managing threads
  • Communicating between threads
  • Timers and message loops

This web of time—the strands of which approach one another, bifurcate, intersect or ignore each other through the centuries—embrace every possibility.

The Garden of Forking Paths

You’ve seen in the previous chapter how to run parts of your application as a Service, which is a great way of performing tasks that don’t require interaction with the user. These tasks are typically, continuously or periodically, executed routines, which is why it makes sense to have them run in the background. When we say background, we mean they’re not visible to the user, but it must be stressed that it does not necessarily ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required