记录广播意图和手动触发它们(Android版) [英] Logging broadcast Intents and manually trigger them (Android)
问题描述
嘿,伙计们,
我的android开发的时候,我已经错过了可以记录发生的每一个广播意图的功能。有时,它一直非常有用的有一个这样的功能...
我也想知道如何手动触发在模拟器上的广播意图。
是否有可用的广播意图的整个概况?
将是巨大的,如果有人有一些答案,
映入眼帘,
poeschlorn
我在android的我已经在开发过程中
错过了可以记录每一个函数
广播意图发生
块引用>他们被记录到LogCat中。使用
亚行logcat
,DDMS,或在Eclipse中DDMS观点来看待他们。
我也想知道如何触发
这些广播意图手动上
模拟器
块引用>有关你被允许发送的那些,通话
sendBroadcast()
。对于系统生成的那些,你一般不能触发他们手动。
有一个完整的概述
可用的广播意图?
块引用>不是真的。检查出意向的文档。所有
行动_
字符串的评论说:广播行动广播意图。还有一些其他的系统中的其他地方散了。Hey guys, during my development in android I've missed a function that can log every broadcast intent that occur. Sometimes it had been very useful to have a function like that...
I'm also wondering how to trigger those broadcast intents manually on the emulator.
Is there an entire overview of available broadcast intents?
Would be great if someone would have some answers,
greets, poeschlorn
解决方案during my development in android I've missed a function that can log every broadcast intent that occur
They are logged to LogCat. Use
adb logcat
, DDMS, or the DDMS perspective in Eclipse to view them.I'm also wondering how to trigger those broadcast intents manually on the emulator
For the ones you are allowed to send, call
sendBroadcast()
. For system-generated ones, you generally cannot "trigger" them "manually".Is there an entire overview of available broadcast intents?
Not really. Check out the documentation for Intent. All of the
ACTION_
strings whose comment says "Broadcast Action" are broadcast Intents. There are a few other scattered elsewhere in the system.这篇关于记录广播意图和手动触发它们(Android版)的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!