title: Broadcast Receiver is not working properly
body: <p>I am experimenting with broadcast receiver in android and I have this class as broadcast receiver:</p>
  <pre><code>public class BroadcastInbuilt extends BroadcastReceiver {
  
      @Override
      public void onReceive(Context context, Intent intent) {
          Toast.makeText(context,&quot;Battery Low, Please Charge!&quot;, Toast.LENGTH_LONG).show();
          Log.i(&quot;BroadcastPersonal&quot;,&quot;Happening&quot;);
          MainActivity.b1.setText(&quot;Change text if working!!&quot;);
      }
  }
  </code></pre>
  <p>I have added this in Android Manifest inside application tag:</p>
  <pre><code>        &lt;receiver
              android:name=&quot;.BroadcastInbuilt&quot;
              android:enabled=&quot;true&quot;
              android:exported=&quot;true&quot;&gt;
              &lt;intent-filter&gt;
                  &lt;action android:name=&quot;android.intent.action.BATTERY_LOW&quot;/&gt;
                  &lt;category android:name=&quot;android.intent.category.DEFAULT&quot;/&gt;
              &lt;/intent-filter&gt;
          &lt;/receiver&gt;
  </code></pre>
  <p>There is no code in my main activity. When I change my battery level to low the toast does not appear. i am following the android tutorial and I have done exactly same as told here</p>
  <p><a href="https://www.youtube.com/watch?v=Uf4V5OSJji8&amp;list=PLlyCyjh2pUe9wv-hU4my-Nen_SvXIzxGB&amp;index=44" rel="nofollow noreferrer">https://www.youtube.com/watch?v=Uf4V5OSJji8&amp;list=PLlyCyjh2pUe9wv-hU4my-Nen_SvXIzxGB&amp;index=44</a></p>
  <p>Result is at 9:40 in video. Now his app shows toast but mine does not.</p>