I have a broadcast BroadcastReceiver, which should start at "android.intent.action.BOOT_COMPLETED".So my question is there are way to pass extras to this Boradcast receiver?Here is my code which is from google`s example:
ComponentName receiver = new ComponentName(context, BootReceiver.class);
PackageManager pm = context.getPackageManager();
pm.setComponentEnabledSetting(receiver,
PackageManager.COMPONENT_ENABLED_STATE_ENABLED,
PackageManager.DONT_KILL_APP);
Greetings!
Aucun commentaire:
Enregistrer un commentaire