O'Reilly logo

Android Application Development: A Beginner’s Tutorial by Budi Kurniawan

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

Chapter 25

Broadcast Receivers

The Android system constantly broadcasts intents that occur during the running of the operating system and applications. In addition, applications can also broadcast user-defined intents. You can capitalize on these broadcasts by writing broadcast receivers in your application.

This chapter explains how to create broadcast receivers.

Overview

A broadcast receiver, or a receiver for short, is an application component that listens to a certain intent broadcast, similar to Java listeners that listen to events. Table 25.1 shows intent actions defined in the android.content.Intent class for which you can write a receiver.

Action

Description

ACTION_TIME_TICK

The current time has changed. Sent every minute. ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required