0 votes
in Android by
What are broadcast receivers? How is it implemented?

2 Answers

0 votes
by
A broadcast receiver is a mechanism used for listening to system-level events like listening for incoming calls, SMS, etc. by the host application. It is implemented as a subclass of BroadcastReceiver class and each message is broadcasted as an intent object.

public class MyReceiver extends BroadcastReceiver

{

    public void onReceive(context,intent){}

}
0 votes
by

Broadcast Receiver is a mechanism using which host application can listen for System level events. It is used by the application whenever they need to perform the execution based on system events like listening for Incoming call, sms etc. It helps in responding to broadcast messages from other application or from the system. It is used to handle communication between Android operating system and applications. 

Related questions

+1 vote
asked Sep 10, 2020 in Cyber Security by Hodge
+2 votes
asked Jan 14, 2020 in QuickTest Professional (QTP) by GeorgeBell
...