2
Most read
3
Most read
4
Most read
Android –
BroadcastReceiver
Yong Heui Cho @ Mokwon University
Some of slides are referred to:
[1] Everything of Android, slideshare.
2
Smart Device Structure
4. Android – Application
Framework
5. Android – Message
6. Android – BroadcastReceiver
7. Android – Phone Calls
3
Broadcast Receiver
• An Intent-based publish-
subscribe mechanism.
• Great for listening system
events such as SMS messages.
□ Courtesy to Everything of Android, slideshare.
4
Uses of BR
• A broadcast receiver is a component that
does nothing but receive and react to
broadcast announcements
• Your app can
– Receive and react to system services (example:
battery low)
– Receive and react to other apps broadcast
announcements
– Initiate broadcasts to other apps
□ Courtesy to Everything of Android, slideshare.
5
Register of BR
• To register Broadcast Receiver, you can
– Dynamically register with registerReceiver (in
code)
– Using <register> tag in AndroidManifest.xml
□ Courtesy to Everything of Android, slideshare.
6
Send of Broadcast
• Broadcast is sent using Intent and
sendBroadcast or sendOrderedBroadcast
methods
• Example:
– Intent intent = new
Intent(“com.enlume.MSG_PRO");
sendBroadcast(intent);
□ Courtesy to Everything of Android, slideshare.
7
Normal vs. Ordered
• Normal Broadcasts
– Sent with sendBroadcast. All broadcasts are
run in undefined order, often at the same
time.
• Ordered Broadcasts
– Sent with sendOrderedBroadcast. Each
receiver executes in turn. Possible to
propagate a result to next receiver. Order can
be controlled using android:priority tag.
□ Courtesy to Everything of Android, slideshare.
8
BR Lifecycle
• Broadcast Receiver object is valid only for
the duration of the onReceive(Context,
Intent) method.
– You cannot do anything asynchronous in
here!
– Except you can start a service, which can start
a thread.
□ Courtesy to Everything of Android, slideshare.
9
BR vs. Listener
type BroadcastReceiver Listener
goal class for Intents
class or interface
for Intents &
others
message
mostly global
messages
mostly specific
messages
period
discontinuous
reception
frequent (or
continuous) reception
construction
static (manifest) or
dynamic
dynamic only

More Related Content

PPTX
Broadcast receivers
PPTX
Presentation on Android application life cycle and saved instancestate
PPTX
Android app development ppt
PPTX
Android share preferences
PPTX
Android activity lifecycle
PPT
Shared preferences
PDF
Android Components
Broadcast receivers
Presentation on Android application life cycle and saved instancestate
Android app development ppt
Android share preferences
Android activity lifecycle
Shared preferences
Android Components

What's hot (20)

PPTX
Android async task
PPTX
07. Virtual Functions
PDF
Android Threading
PPTX
Content provider in_android
PPTX
Android UI
PDF
jQuery for beginners
PPTX
Notification android
PPTX
Fundamental of C Programming (Data Types)
PPTX
Day: 1 Introduction to Mobile Application Development (in Android)
PPT
JQuery introduction
PPT
File in C Programming
PDF
Design and Concepts of Android Graphics
PDF
Android Components & Manifest
PDF
Flutter
PPTX
page replacement.pptx
PPTX
Android Operating System
PPTX
File in C language
PPTX
Android Services
PPT
PDF
Android Basic Components
Android async task
07. Virtual Functions
Android Threading
Content provider in_android
Android UI
jQuery for beginners
Notification android
Fundamental of C Programming (Data Types)
Day: 1 Introduction to Mobile Application Development (in Android)
JQuery introduction
File in C Programming
Design and Concepts of Android Graphics
Android Components & Manifest
Flutter
page replacement.pptx
Android Operating System
File in C language
Android Services
Android Basic Components
Ad

Viewers also liked (18)

PPTX
Introduction to RTOS
PPTX
Introduction to Bluetooth
DOCX
TestSDIC2017-2(answer)
DOCX
TestSDIC2017-1(answer)
DOCX
TestSDS2016-1(Answer)
PDF
ICT+UD IoT App 융합작품 개발문서(스마트디바이스구조)
PPTX
Android - Phone Calls
PDF
스마트디바이스구조(강의계획서)2017-2
PPTX
Introduction to IoT
DOCX
TestECD2017-1(answer)
DOCX
TestSDS2016-2(Answer)
PPTX
Android - Application Framework
PDF
ICT+UD 융합작품 개발문서(전자회로설계)
PPTX
Basic Android OS
PPTX
Introduction to Smart Devices
PPTX
Android Programming
PPTX
Android - Message
PPTX
Smart Device RF & Antennas
Introduction to RTOS
Introduction to Bluetooth
TestSDIC2017-2(answer)
TestSDIC2017-1(answer)
TestSDS2016-1(Answer)
ICT+UD IoT App 융합작품 개발문서(스마트디바이스구조)
Android - Phone Calls
스마트디바이스구조(강의계획서)2017-2
Introduction to IoT
TestECD2017-1(answer)
TestSDS2016-2(Answer)
Android - Application Framework
ICT+UD 융합작품 개발문서(전자회로설계)
Basic Android OS
Introduction to Smart Devices
Android Programming
Android - Message
Smart Device RF & Antennas
Ad

Similar to Android - Broadcast Receiver (20)

PPTX
Android - Broadcast Receiver
PPT
Module - Programming with android course.ppt
PDF
Introduction to android - SpringPeople
PPTX
01. Introduction to Android_lecture1.pptx
PPTX
Data Transfer between activities and Database
PDF
Lecture 2(b) Android Internals A Quick Overview
PPTX
Learn Android app development in easy steps
PPTX
Data Transfer between Activities & Databases
PDF
Android broadcast receiver tutorial
PDF
Android broadcast receiver tutorial
PPTX
Broadcast receiver- How Android apps listen to system-wide or app-specific ev...
PPTX
Modul 2.pptxhelllojobbigtufytfythjgjhbknkjlnlk
PPS
Getting Started With Android Application Development [IndicThreads Mobile Ap...
PPT
Android Security
PPTX
Broadcast Receiver
PPTX
Androidappdevelopmentpresentation
PPT
Android_ver_01
PPTX
Security on android
PPTX
Mobile web development
PPTX
Security in Android Application
Android - Broadcast Receiver
Module - Programming with android course.ppt
Introduction to android - SpringPeople
01. Introduction to Android_lecture1.pptx
Data Transfer between activities and Database
Lecture 2(b) Android Internals A Quick Overview
Learn Android app development in easy steps
Data Transfer between Activities & Databases
Android broadcast receiver tutorial
Android broadcast receiver tutorial
Broadcast receiver- How Android apps listen to system-wide or app-specific ev...
Modul 2.pptxhelllojobbigtufytfythjgjhbknkjlnlk
Getting Started With Android Application Development [IndicThreads Mobile Ap...
Android Security
Broadcast Receiver
Androidappdevelopmentpresentation
Android_ver_01
Security on android
Mobile web development
Security in Android Application

More from Yong Heui Cho (20)

PPTX
Android - Sensor Manager
PPTX
Android - Message
PPTX
Cloud Computing
PPTX
Computing Paradigm
DOCX
TestBCD2018-2(answer)
DOCX
TestSDS2018-2(answer)
DOCX
TestEC2018-2(answer)
DOCX
TestEC2018-1(answer)
DOCX
TestBCD2018-1(answer)
DOCX
TestSDS2018-1(answer)
PPTX
BJT - Analysis of Bias
DOCX
TestCloud2018-2(answer)
DOCX
TestECD2018-1(answer)
DOCX
Test-SDIC2018-2(answer)
DOCX
TestCloud2018-1(answer)
PPTX
Cloud Service Model
DOCX
Test-SDIC2018-1(Answer)
DOCX
RF 증폭기 설계(Design of RF Amplifier)-rev1
PPTX
Computing Paradigm - rev1
PPTX
Cloud Deployment Model
Android - Sensor Manager
Android - Message
Cloud Computing
Computing Paradigm
TestBCD2018-2(answer)
TestSDS2018-2(answer)
TestEC2018-2(answer)
TestEC2018-1(answer)
TestBCD2018-1(answer)
TestSDS2018-1(answer)
BJT - Analysis of Bias
TestCloud2018-2(answer)
TestECD2018-1(answer)
Test-SDIC2018-2(answer)
TestCloud2018-1(answer)
Cloud Service Model
Test-SDIC2018-1(Answer)
RF 증폭기 설계(Design of RF Amplifier)-rev1
Computing Paradigm - rev1
Cloud Deployment Model

Recently uploaded (20)

PDF
Enhancing plagiarism detection using data pre-processing and machine learning...
PPTX
Modernising the Digital Integration Hub
PDF
Consumable AI The What, Why & How for Small Teams.pdf
PDF
Zenith AI: Advanced Artificial Intelligence
PDF
sustainability-14-14877-v2.pddhzftheheeeee
PPT
Module 1.ppt Iot fundamentals and Architecture
PDF
How IoT Sensor Integration in 2025 is Transforming Industries Worldwide
PDF
Comparative analysis of machine learning models for fake news detection in so...
PDF
ENT215_Completing-a-large-scale-migration-and-modernization-with-AWS.pdf
DOCX
search engine optimization ppt fir known well about this
PDF
Architecture types and enterprise applications.pdf
PDF
A proposed approach for plagiarism detection in Myanmar Unicode text
PDF
Credit Without Borders: AI and Financial Inclusion in Bangladesh
PPTX
AI IN MARKETING- PRESENTED BY ANWAR KABIR 1st June 2025.pptx
PDF
Getting started with AI Agents and Multi-Agent Systems
PDF
STKI Israel Market Study 2025 version august
PDF
Developing a website for English-speaking practice to English as a foreign la...
PDF
A contest of sentiment analysis: k-nearest neighbor versus neural network
PDF
Improvisation in detection of pomegranate leaf disease using transfer learni...
PDF
1 - Historical Antecedents, Social Consideration.pdf
Enhancing plagiarism detection using data pre-processing and machine learning...
Modernising the Digital Integration Hub
Consumable AI The What, Why & How for Small Teams.pdf
Zenith AI: Advanced Artificial Intelligence
sustainability-14-14877-v2.pddhzftheheeeee
Module 1.ppt Iot fundamentals and Architecture
How IoT Sensor Integration in 2025 is Transforming Industries Worldwide
Comparative analysis of machine learning models for fake news detection in so...
ENT215_Completing-a-large-scale-migration-and-modernization-with-AWS.pdf
search engine optimization ppt fir known well about this
Architecture types and enterprise applications.pdf
A proposed approach for plagiarism detection in Myanmar Unicode text
Credit Without Borders: AI and Financial Inclusion in Bangladesh
AI IN MARKETING- PRESENTED BY ANWAR KABIR 1st June 2025.pptx
Getting started with AI Agents and Multi-Agent Systems
STKI Israel Market Study 2025 version august
Developing a website for English-speaking practice to English as a foreign la...
A contest of sentiment analysis: k-nearest neighbor versus neural network
Improvisation in detection of pomegranate leaf disease using transfer learni...
1 - Historical Antecedents, Social Consideration.pdf

Android - Broadcast Receiver

  • 1. Android – BroadcastReceiver Yong Heui Cho @ Mokwon University Some of slides are referred to: [1] Everything of Android, slideshare.
  • 2. 2 Smart Device Structure 4. Android – Application Framework 5. Android – Message 6. Android – BroadcastReceiver 7. Android – Phone Calls
  • 3. 3 Broadcast Receiver • An Intent-based publish- subscribe mechanism. • Great for listening system events such as SMS messages. □ Courtesy to Everything of Android, slideshare.
  • 4. 4 Uses of BR • A broadcast receiver is a component that does nothing but receive and react to broadcast announcements • Your app can – Receive and react to system services (example: battery low) – Receive and react to other apps broadcast announcements – Initiate broadcasts to other apps □ Courtesy to Everything of Android, slideshare.
  • 5. 5 Register of BR • To register Broadcast Receiver, you can – Dynamically register with registerReceiver (in code) – Using <register> tag in AndroidManifest.xml □ Courtesy to Everything of Android, slideshare.
  • 6. 6 Send of Broadcast • Broadcast is sent using Intent and sendBroadcast or sendOrderedBroadcast methods • Example: – Intent intent = new Intent(“com.enlume.MSG_PRO"); sendBroadcast(intent); □ Courtesy to Everything of Android, slideshare.
  • 7. 7 Normal vs. Ordered • Normal Broadcasts – Sent with sendBroadcast. All broadcasts are run in undefined order, often at the same time. • Ordered Broadcasts – Sent with sendOrderedBroadcast. Each receiver executes in turn. Possible to propagate a result to next receiver. Order can be controlled using android:priority tag. □ Courtesy to Everything of Android, slideshare.
  • 8. 8 BR Lifecycle • Broadcast Receiver object is valid only for the duration of the onReceive(Context, Intent) method. – You cannot do anything asynchronous in here! – Except you can start a service, which can start a thread. □ Courtesy to Everything of Android, slideshare.
  • 9. 9 BR vs. Listener type BroadcastReceiver Listener goal class for Intents class or interface for Intents & others message mostly global messages mostly specific messages period discontinuous reception frequent (or continuous) reception construction static (manifest) or dynamic dynamic only