Why is it that I can register a broadcast receiver for "android.intent.action.ACTION_POWER_CONNECTED" via the manifest file but not programmatically using the following:
IntentFilter iFilter = new IntentFilter();
iFilter.addAction("android.intent.action.ACTION_POWER_CONNECTED");
registerReceiver(powerStateListener, iFilter);
What is the best way to determine which intents must be registered for via the manifest and which can be done programmatically?