Hi,
My application listens to a broadcast message sent by a service. I would
like to test, debug the activity but I do not want to wait for the time when
the broadcast message is actually sent by the service.
Is there any way to send a particular broadcast message to the emulator?
rrd
--
12.02.2011 15:47, rrd пишет:
Hi,
My application listens to a broadcast message sent by a service. I
would like to test, debug the activity but I do not want to wait for
the time when the broadcast message is actually sent by the service.
Is there any way to send a particular broadcast
You can use the am shell command to send a broadcast. Use adb shell am
to get a help summary. Don't use it to send a BOOT_COMPLETED broadcast,
since if you are allowed to do that you will cause all kinds of chaos as
tons of stuff receives it and thinks the system has booted again. Instead
use
3 matches
Mail list logo