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

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.