We developed two apps in class:
Here is the slide deck on services.
There is also an introduction to services on the Android Developer Site, and it is highly recommended reading. Note that this documentation does not cover in detail how to communicate with a service. For that, see the slide deck and the ServiceExample app.