Skip to Main Content
Beginning Android Programming: Develop and Design
book

Beginning Android Programming: Develop and Design

by Chris Haseman, Kevin Grant
December 2013
Beginner content levelBeginner
320 pages
7h 54m
English
Peachpit Press
Content preview from Beginning Android Programming: Develop and Design

Chapter 6. Background Services

Services are one of the most important, and most often under-utilized, components of the Android platform. They are essential for accomplishing any task whose data or relevance can span more than one activity. They are like activities in that they have a lifecycle (albeit a much simpler one), but they do not have the activity’s ability to draw to the screen. In practice, services break down into two major use cases: the listener and the task. Listeners are services that hang out in the background, waiting for something to happen that prompts them to take action. Task services are akin to the photo downloader that we covered before, so in this chapter I’ll focus on listening services.

What Is a Service?

A Service ...

Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Start your free trial

You might also like

Creating Android Applications: Develop and Design

Creating Android Applications: Develop and Design

Chris Haseman
Android Fragments

Android Fragments

Dave MacLean, Satya Komatineni

Publisher Resources

ISBN: 9780133572681Purchase book