BroadcastReceiver for location
I think what you are looking for is something like this. There is a version of LocationManager.requestLocationUpdates() that takes a PendingIntent as a parameter, and this Intent could be used to fire a BroadcastReceiver. This code will register a custom broadcast to fire with the location updates. Intent intent = new Intent(“UNIQUE_BROADCAST_ACTION_STRING_HERE”); LocationManager manager = … Read more