null
アクティビティからブロードキャスト レシーバーにデータを渡すと、常にバンドル値を取得します。私の受信機は起動時に起動します。
これは私の活動クラスのコードです
Intent intent= new Intent();
intent.setAction("android.intent.action.BOOT_COMPLETED");
intent.putExtra("test", "test");
sendBroadcast(intent);
これは私のレシーバークラスのコードです:
String testValue = intent.getStringExtra("test");