title: How can I get Battery information in my app?
body: <p>I tried to use a receiver to get Information about battery when received a system broadcast, but it failed without doing anything.<br>
  Here is the code:<br>
  <code>if (Intent.ACTION_BATTERY_CHANGED.equals(intent.getAction()))
    {//doing<br>
  1...<br>
  }</code></p>
  
  <p>and in AndroidManifest.xml<br>
  <code>&lt;receiver android:name=".BroadCastReceiver_battery"&gt;<br>
      &lt;intent-filter&gt;<br>
          &lt;action android:name="android.intent.action.BATTERY_CHANGED" /&gt;<br>
      &lt;/intent-filter&gt;<br>
  &lt;/receiver&gt;
  </code></p>