title: Broadcast-receiver which always receives broadcast (even in background) for API Level +26
body: <p>I'm posing this as <em>Q&amp;A style</em> because I found this idea working. And it's a fix to the hard problem to crack for beginners with Android.</p>
  
  <blockquote>
    <p>Google has deprecated registering <code>Broadcast Receiver</code> into manifest like this below from API Level 26+ ( Except <a href="https://developer.android.com/guide/components/broadcast-exceptions" rel="noreferrer">Some</a> )</p>
  </blockquote>
  
  <pre><code>&lt;receiver android:name=".MyBroadcastReceiver"  android:exported="true"&gt;
      &lt;intent-filter&gt;
          &lt;action android:name="android.net.wifi.STATE_CHANGE" /&gt;
      &lt;/intent-filter&gt;
  &lt;/receiver&gt;
  </code></pre>
  
  <p>But, If one wants to receive particular device state changes like <em>Internet Connectivity Changes (Which isn't allowed)</em> while the app is in background and if it's important for any feature of his application, what should he do?</p>