1.

What are broadcast receivers? How is it implemented?

Answer»

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){}}


Discussion

No Comment Found