Does a running app need to poll for listening to event broadcast? If not, what is the approach used?
Asked
Active
Viewed 69 times
0
-
As you tagged would that be a listener? – marekful Nov 19 '16 at 14:21
-
properly name Android object in question and rephrase for clarity – display name Nov 22 '16 at 03:38
1 Answers
0
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.

Alex Shutov
- 3,217
- 2
- 13
- 11