Location listener works from a Service but not an IntentService
问题 I have an app where I am trying to periodically get user location and send to server. I have a service attached to an AlarmManager which executes every minute (for testing). The service finds the user location correctly and logs out the GPS co-ords. Once there is a GPS lock I cancel the location request and stop the service. When I ask for location updates, I start a Handler that executes 20 seconds later, this Handler removes the location update and stops the Service in case no lock is