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 message to the emulator?
You can fake it in your own code. Not all system broadcasts can be sent
by applications, so you'd need something like this:
<receiver ...>
<intent-filter>
<action name="android.intent.action.BOOT_COMPLETED"/>
<action name="my.test.boot_completed"/>
</intent-filter>
</receiver>
Then put a button in some activity of yours to send
"my.test.boot_completed" broadcast.
-- Kostya
rrd
--
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en
--
Kostya Vasilyev -- http://kmansoft.wordpress.com
--
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en