The FusedLocation API is newer than LocationManager API, but it is not clear to me when to use one vs the other. I want to monitor location changes even when the user is not running the app.
I found this nice example using the LocationManager but this is from 2011. Is this information still relevant?
The FusedLocation API examples show how to configure a LocationRequest for continuous location updates in your Activity. My question is, how would you use it to monitor location changes when your Activity is not running?
I've seen other examples that use Alarm Manager, but this is basically polling and seems like overkill and might drain the battery (but maybe I am wrong?).