[android-developers] debugging services, broadcast messages

2011-02-12 Thread 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 message to the emulator? rrd --

Re: [android-developers] debugging services, broadcast messages

2011-02-12 Thread Kostya Vasilyev
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

Re: [android-developers] debugging services, broadcast messages

2011-02-12 Thread Dianne Hackborn
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