Dipankar Maitra Dipankar Maitra - 4 months ago 52
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?


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.