Android tutorial - Broadcastreceiver in android | Android Call State BroadCastReceiver - android app development - android studio - android development tutorial
what is BroadCastReceiver?
- A broadcast receiver (receiver) is an Android component which allows you to register for system or application events.
- All registered receivers for an event are notified by the Android runtime once this event happens.
- For example, applications can register for the ACTION_BOOT_COMPLETED system event which is fired once the Android system has completed the boot process.
activity_main.xml
- File: activity_main.xml
Activity class
- File: MainActivity.java
IncommingCallReceiver
- File: IncommingCallReceiver.java