Android: Event ACTION_POWER_CONNECTED is not sent to my BroadcastReceiver
<p>I want to do something after the the phone is put into charger. So I 
created ChargingOnReciever: </p>

<pre><code>public class ChargingOnReceiver extends BroadcastReceiver { 
        public void onReceive(Context context, Intent intent) { 
                context.startActivity(someActivity);
                Log.d(TAG, "Phone was connected to power");
        } 
} 
</code></pre>

<p>and I want my receiver to listen to android.intent.action.ACTION_POWER_CONNECTED, so I put this into manifest:</p>

<pre><code>    &lt;reciever android:name=".ChargingOnReceiver" android:enabled="true"
        android:exported="true"&gt;
        &lt;intent-filter&gt;
            &lt;action android:name="android.intent.action.ACTION_POWER_CONNECTED" /&gt;
        &lt;/intent-filter&gt;
    &lt;/reciever&gt;
</code></pre>

<p>But ChargingOnReceiver is apparently not started when I put my G1 to charger 
(connect to my notebook via USB cable). Any help is much appreciated. </p>
