title: Battery broadcast receiver declared in manifest file does not work?
body: <p>There are two ways to make a broadcast receiver known to the system: One declares it in the manifest file with this element. The other is to create the receiver dynamically in java code.</p>
  
  <p>Now, the receiver has been created dynamically in java code and it does work normally.But why the first way "Declare in the manifest file" failed?</p>
  
  <p>Is there anyone to success?</p>
  
  <p>Thanks.</p>
  
  <p><strong>AndroidManifest.xml</strong></p>
  
  <pre><code>&lt;receiver android:name="pj.batteryinfo.BatteryReceiver"&gt;
      &lt;intent-filter&gt;
          &lt;action android:name="android.intent.action.BATTERY_CHANGED"&gt;&lt;/action&gt;
      &lt;/intent-filter&gt;
  &lt;/receiver&gt;
  </code></pre>