I'm posing this as *Q&A style* because I found this idea working. And it's a fix to the hard problem to crack for beginners with Android.

> 
> Google has deprecated registering `Broadcast Receiver` into manifest like this below from API Level 26+ ( Except [Some](https://developer.android.com/guide/components/broadcast-exceptions) )
> 
> 
> 

```
<receiver android:name=".MyBroadcastReceiver"  android:exported="true">
    <intent-filter>
        <action android:name="android.net.wifi.STATE_CHANGE" />
    </intent-filter>
</receiver>

```

But, If one wants to receive particular device state changes like *Internet Connectivity Changes (Which isn't allowed)* while the app is in background and if it's important for any feature of his application, what should he do?