1

I am developing an android app which will track the user location trace (GPS Provider) and show polyline. I have implemented that using

locationManager.requestLocationUpdates(LocationManager.GPS_PROVIDER, 0, 0, listener);

in my activity. But now when the user close the activity from the stack i can't get the location updates. Is it possible to get the location update even the activity closed?

Dinesh T A
  • 2,087
  • 4
  • 26
  • 34

1 Answers1

0

https://github.com/googlesamples/android-play-location/tree/master/LocationUpdates

This is android developer source code for getting location updates.

RamBabu Pudari
  • 912
  • 7
  • 19