lundi 11 mai 2015

adb reboot broadcast doesn't work on some app

I've used this question to test reboot broadcast of my own app. i.e.,

C:\Eclipse\sdk\platform-tools>adb shell am broadcast -a android.intent.action.BOOT_COMPLETED -c android.intent.category.HOME -n http://ift.tt/1IvjXXC Broadcasting: Intent { act=android.intent.action.BOOT_COMPLETED cat=[android.intent.category.HOME] cmp=http://ift.tt/1IvjXXC }

Broadcast completed: result=0

but it doesn't work.

The simple command reboots the device:

adb shell am broadcast -a android.intent.action.BOOT_COMPLETED -c android.intent.category.HOME

I know that broadcast receiver BRAutoStart receives the boot_completed , because i've tested it and using it in production code.

I'm using the real device, not an emulator.

How to setup command line to send the broadcast to the device?

Aucun commentaire:

Enregistrer un commentaire