Chapter 19
Broadcast Receivers and Long-Running Services
Through previous chapters, you have been exposed to activities, content providers, and services. We haven't talked much about broadcast receivers, so we will do that in this chapter.
We'll show you how to invoke single and multiple broadcast receivers. We will explore how broadcast receivers can reside in processes outside of the client processes. And we will demonstrate how a broadcast receiver issues notifications.
We will talk about the ten-second limit on a broadcast receiver to respond before the system throws Application Not Responding (ANR) messages and suggest known mechanisms to work around this. We will develop a framework where you can start viewing a long-running service ...
Get Pro Android 4 now with the O’Reilly learning platform.
O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.