Reputation: 49
I am not running this on an emulator, but an actual Android Device (Google Pixel 3).
If I issue this command: am broadcast -a android.intent.action.BOOT_COMPLETED
I get the output :
> Broadcasting: Intent { act=android.intent.action.BOOT_COMPLETED
> flg=0x400000 } Broadcast completed: result=0
I was expecting the device to reboot. Does this mean that the broadcast isn't working?
Upvotes: 0
Views: 928
Reputation: 1006674
I was expecting the device to reboot.
That broadcast does not reboot the device. It is a broadcast, sent by the system, after the device has booted.
Upvotes: 1