2. Working with Services
Services are important Android application components that can greatly enhance an application. An Android Service
might be used to perform functions in the background that do not require user input or to supply information to other applications. In this chapter, you will learn how to create and interact with an Android Service
. Then you will learn how to define a remote interface using the Android Interface Definition Language (AIDL). Finally, you will learn how to pass objects through this interface by creating a class that implements a Parcelable
object.
Determining When to Use Services
A Service
in the Android SDK can mean one of two things. First, a Service
can mean a background process that performs some useful ...
Get Advanced Android™ Application Development, Fourth Edition 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.