Just wanted to resurrect this old thread... the guide provided is good, but OP was asking how to use GPS with the background service and get continuous position updates even when the screen is off, app has changed, etc.
Is there any example of how to use GPS a background service in this way?