What Services Are For

Okay, we admit it: looking at those LogCat statements was boring. But this code is really exciting! Why? What can you do with it?

Time to go back the land of make believe, where we are no longer programmers, where we work in retail shoe sales with superheroes who do our bidding.

Your workers can work in two kinds of places in a store: the front of the store, where workers talk to customers, and the back of the store, where they do not. The back of the store may be larger or smaller, depending on the store.

So far, all of your code has run in activities. Activities are your Android app’s storefront. All this code is focused on a pleasant visual experience for your user, your customer.

Services are the back end of your ...

Get Android Programming: The Big Nerd Ranch Guide 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.