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
Post a Comment