Lecture 12 - BroadcastReceiver - Send data from receiver to Activity - Part 5 (Urdu/Hindi)

Опубликовано: 20 Август 2026
на канале: Android Learning 101
20
1

This is the last part in a 5 part lecture series.
In this part, we'll learn how to send data received in a BroadcastReceiver to the Activity. We will update a count in the Activity and show it on the user interface, so user can see how many times the button on second Activity was pressed.
To achieve that, we'll create callbacks, to keep our Activity connected with the BroadcastReceiver, so the BroadcastReceiver can inform our Activity when data is received in it. Using callbacks, like we're doing in this lecture, is considered to be one of the best practices, because it keeps BroadcastReceiver independent from Activity, and can be used with any Activity or Fragment.

Lecture on callbacks ==    • Callbacks - Introduction in Kotlin - Part ...  
Example of using callbacks ==    • Callbacks - Usage in real life scenario - ...  

Part 4 ==    • Lecture 12 - BroadcastReceiver - Best prac...