I have my main activity that start a service (Location service) and I want that service to broadcast the new location each time a new location is found.
Thanks to th
LocalBroadcastManager
does not work across processes. Your Service
is running in a separate process.
You can either run your Service
in the same process as the Activity
- by removing the process
attribute from the
element - or use some sort of IPC instead - e.g., by sending and receiving the broadcasts on a Context
instead of LocalBroadcastManager
.