x
Menu

Android For Beginners

Other,

Updated On 02 Feb, 19

Overview

Includes

Lecture 9: Broadcast Reciver (Part - 9)

4.1 ( 11 )


Lecture Details

Join us for a FREE Webinar on Android httpwww.edureka.coandroid-development-certification-course

This android tutorial talks about Broadcast Receivers in detail

Broadcast Receiver
------------------------------

A broadcast receiver is a dormant component of the Android system. Only an Intent (for which it is registered) can bring it into action. The Broadcast Receivers job is to pass a notification to the user, in case a specific event occurs.

Using a Broadcast Receiver, applications can register for a particular event. Once the event occurs, the system will notify all the registered applications.

For instance, a Broadcast receiver triggers battery Low notification that you see on your mobile screen.
Other instances caused by a Broadcast Receiver are new friend notifications, new friend feeds, new message etc. on your Facebook app.

In fact, you see broadcast receivers at work all the time. Notifications like incoming messages, WiFi ActivatedDeactivated message etc. are all real-time announcements of what is happening in the Android system and the applications.

Security
--------------

As the broadcast receivers have a global work-space, security is very important concern here. If you do not define the limitations and filters for the registered receivers, other applications can abuse them. Here are a few limitations that might help

Whenever you publish a receiver in your applications manifest, make it unavailable to external applications by using android exported="false". You might think that specifying Intent filters while publishing the receiver would do the task for you, when in reality they are not enough.
When you send a broadcast, it is possible for the external applications too to receive them. This can be prevented by specifying a few limitations.
Similarly, when you register your receiver using registerReceiver, any application may send it broadcasts. This can be prevented using permissions as well.

(PS As of Android 3.1, the Android system will not receive any external Intent, so the system is comparatively secure now.)

Read More about Broadcast Receivers at


httpwww.edureka.coblogandroid-tutorials-broadcast-receivers
------------------------------------------------------

Please write back to us at support@edureka.in or call us at +91-8880862004 for more information.
httpwww.edureka.co

Use the link to watch all videos of this session
httpwww.youtube.complaylist?list=PL9ooVrP1hQOHiWL2R-gYcF8oA4yPJKTNb

Ratings

0


0 Ratings
55%
30%
10%
3%
2%
Comments
comment person image

Sam

Excellent course helped me understand topic that i couldn't while attendinfg my college.

Reply
comment person image

Dembe

Great course. Thank you very much.

Reply
Send