java - Create a service like thread in Android -


i creating google maps application in android. want after user closes app, want create service, beforehand, still runs in background , sends me current location of user.

now when user exits 5m radius of particular location, want background thread stop.

is possible? if yes, how can implement it. direction or web page tutorial or code snippet appreciated.

to answer question possible. fusedlocationproviderapi.

specifically, need method requestlocationupdates(). there several different method signatures allow pass in pendingintents (for background location requests) locationlistener (for foreground requests).


Comments

Popular posts from this blog

javascript - Karma not able to start PhantomJS on Windows - Error: spawn UNKNOWN -

c# - Display ASPX Popup control in RowDeleteing Event (ASPX Gridview) -

Nuget pack csproj using nuspec -