0

Does a running app need to poll for listening to event broadcast? If not, what is the approach used?

display name
  • 4,165
  • 2
  • 27
  • 52

1 Answers1

0

No, there is a 'push' approach used - app register receiver either during installation (if BroadcastReceiver is registered in Manifest), or when app is started. Then, when broadcat is raised, Android matches IntentFilters for all registered receivers and deliver Intent to that BroadcastReceiver.

Alex Shutov
  • 3,217
  • 2
  • 13
  • 11