Chapter 5. Managing background tasks with Services

In this chapter

  • Multitasking with Services
  • Creating background tasks
  • Reviving tasks that have been killed

I am the greatest. I said that even before I knew I was. Don’t tell me I can’t do something. Don’t tell me it’s impossible. Don’t tell me I’m not the greatest. I’m the double greatest.

Muhammad Ali

Services are a killer feature of Android. That’s a bold statement, but it’s accurate. It might be more accurate to say that multitasking is a killer feature of Android, and the way to fully implement multitasking on Android is by using Services. Don’t take our word on this: watch TV instead. One of the most successful commercials for the popular Motorola Droid touted its ability to multitask ...

Get Android in Practice 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.