I want to do something like this:
When my application starts I want to start a Service which should check my location
When the application g
I suggest you to use the latest location api provided by google(also compatible to version 2.2).
here is a example shows how to use that: https://github.com/chenjishi/android_location_demo
when your app run to background, you can call disconnect to stop the location update.