OnMyLocationChangeListener Google maps android

1

I have an application that works like a GPS tracker, it is working normal, when the user moves it plays on my server the change that causes all the devices to change the Marker. But I need to make the OnMyLocationChangeListener function work even with the application closed, I thought of a Service, but I do not know if this is possible. Does anyone know if it is? If not, is there a better way to do it?

    
asked by anonymous 03.08.2014 / 19:05

1 answer

1

Yes, this is possible. You must declare an IntentService and use a BroadCast to communicate with the app. You can always have location data updated, even if the app is not running. Here you'll find the best way to do this.

    
04.08.2014 / 18:47