Dipankar Maitra Dipankar Maitra - 1 year ago 72
Android Question

How Android broadcast receiver works at system level? Does a running app need to poll for listening to events

Do an app require to poll for listening to event broadcasted by system or another app. If not, what is the solution used?

Answer Source

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.

Recommended from our users: Dynamic Network Monitoring from WhatsUp Gold from IPSwitch. Free Download