Harshit Kumar
Harshit Kumar

Reputation: 49

How do I know if the broadcast event is working?

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

Answers (1)

CommonsWare
CommonsWare

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

Related Questions