Dipankar Maitra Dipankar Maitra - 18 days ago 14
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

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.