Dipankar Maitra Dipankar Maitra - 1 year ago 82
Android Question

How does Android BroadcastReceiver works at system level?

Does a running app need to poll for listening to event broadcast? If not, what is the approach 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.