title: I can't receive broadcast on battery state change?
body: <p>I am having the exact same problem as this post: <a href="https://stackoverflow.com/questions/8582539/battery-broadcast-receiver-doesnt-work">Battery broadcast receiver doesn&#39;t work</a>. But it seems no one has answered that question.</p>
  
  <p>Here is my BroadcastReceiver:</p>
  
  <pre><code>public class BatteryLevelReceiver extends BroadcastReceiver{
  
  
      @Override
      public void onReceive(Context context, Intent intent) {
      Log.v("plugg", "plug change fired");
      Toast.makeText(context, " plug change fired", Toast.LENGTH_LONG).show();
          }
  </code></pre>
  
  <p>And here is my AndroidManifest.xml: </p>
  
  <pre><code>&lt;receiver android:name=".ReceversAndServices.BatteryLevelReceiver"&gt;
                 &lt;intent-filter android:priority="900"&gt;
                 &lt;action android:name="android.intent.action.BATTERY_LOW" /&gt;
  
                 &lt;/intent-filter&gt;
             &lt;/receiver&gt;
  
             &lt;receiver android:name=".ReceversAndServices.BatteryLevelReceiver"&gt;
                 &lt;intent-filter android:priority="900"&gt;
                 &lt;action android:name="android.intent.action.BATTERY_CHANGED" /&gt;
                 &lt;/intent-filter&gt;
             &lt;/receiver&gt;
  </code></pre>
  
  <p>I have also added this line to the manifest: </p>
  
  <pre><code>&lt;uses-permission android:name="android.permission.BATTERY_STATS"/&gt;
  </code></pre>
  
  <p>But still no success!</p>
  
  <p>I would really appreciate if someone could advise me what I am doing wrong.</p>