broadcastreceiver android

Broadcast Receiver: Two ways to implement part-2

Read Time < 1 minuteIn the previous tutorial, we discussed how to implement/register broadcast receiver inside an activity. Broadcast receiver is a standalone application component which means it will continue running even when other application component are not running. That’s why we unregister broadcast receiver in onPause on the activity.Second way of using broadcast receiver is to register it …

Broadcast Receiver: Two ways to implement part-2 Read More »

Broadcast Receiver: Two ways to implement part-1

Read Time 2 minutesI got confused while learning about the broadcast receiver after browsing around the web. Some people register it inside activities while other register it in manifest. The purpose of this tutorial is to explain both ways and the use-cases when to use which implementation. Broadcast receiver is an application component like activity and service. Its …

Broadcast Receiver: Two ways to implement part-1 Read More »