Building and Consuming Services
The Android platform provides a complete software stack. This means you get an operating system and middleware, as well as working applications (such as a phone dialer). Alongside all of this, you have an SDK that you can use to write applications for the platform. Thus far, we’ve seen that we can build applications that directly interact with the user through a user interface. We have not, however, discussed background services or the possibilities of building components that run in the background.
In this chapter, we are going to focus on building and consuming services in Android. First we’ll discuss consuming HTTP services, and then we’ll cover a nice way to do simple background tasks, and finally ...