HDTutorial
EN

Playback starts YouTube’s embedded player (privacy-enhanced mode).

BroadcastReceiver Tutorial Part 1 - STATIC RECEIVERS - Android Studio Tutorial

134,456 views November 7, 2018 10:02

Watch on YouTube
ChannelCoding in Flow

Description from the creator

In this video series we will learn everything about BroadcastReceivers in Android, with which we can listen to different system and application events. This way we can execute code when the device boots up, when the internet connectivity of the phone changes, when we receive an SMS and a lot more. We can also send our own broadcasts and schedule work for a time in the future.
In part 1 we will take a look at static, Manifest registered BroadcastReceivers, that will work even if the app itself is not running. By giving them an IntentFilter with an appropriate action string, we can have them listen to implicit broadcasts, like different system events. When these events happen, the onReceive method of our BroadcastReceiver will be called.
We will also learn about the background execution changes that have been made on Android Nougat and Oreo, which for example change the way we can listen to the CONNECTIVITY_CHANGE broadcast.

Watch the whole playlist:
youtube.com/playlist?list=PLrnPJCHvNZuBqr_0AS9B…

Example code for this part:
gist.github.com/codinginflow/2d3683222f83d5c8ab…

____________________
💻 Find the BEST programming tutorials on TutHub:
tuthub.io

⭐ Get my MVVM Caching Course now:
codinginflow.com/caching

❗ Subscribe to the channel:
youtube.com/c/codinginflo...

📨 Subscribe to the Coding in Flow newsletter:
codinginflow.com/newsletter

❓ Join our free developer community:
discord.gg/TSnMvmc

📣 Follow Coding in Flow on other sites:
Facebook: facebook.com/codinginflow
Instagram: instagram.com/codinginflow
TikTok: tiktok.com/@codinginflow
Twitter: twitter.com/codinginflow
Github: github.com/codinginflow

💰 Business requests, sponsoring, etc.: [email protected]

About this tutorial

Coding in Flow published this 10:02 video tutorial on November 7, 2018. It has been watched 134,456 times on YouTube.

Duration
10:02
Published
November 7, 2018
Views
134,456
Likes
1,794

Tags

Share

This tutorial in other languages