其中活动处理Intent.ACTION_CALL_PRIVILEGED? [英] Which activity handles Intent.ACTION_CALL_PRIVILEGED?
问题描述
我已经挖了一段时间进入在Android联系人应用找出哪些活动处理 Intent.ACTION_CALL_PRIVILEGED
。不幸的是,我无法找到它的源$ C $ C。有谁知道这就是所谓的,甚至是更好的在哪里可以找到它的根源?谢谢!
I've been digging for awhile into the source of the Contacts app on Android to find out which Activity handles Intent.ACTION_CALL_PRIVILEGED
. Unfortunately, I couldn't find its source code. Does anyone know how it's called, or even better where I can find it's source? Thank you!
推荐答案
Oddly enough, the Phone application handles call-related events. ;)
您可以观看 ActivityManager
输出logcat中看到哪个组件处理特定意图
。
You can watch ActivityManager
output in logcat to see which component handles a particular Intent
.
从联系人源$ C $ C:
From the Contacts source code:
Intent intent = new Intent(Intent.ACTION_CALL_PRIVILEGED,
Uri.fromParts("tel", number, null));
startActivity(intent);
您可以重现此意图
在命令行上:
ADB -e壳上午开始-a android.intent.action.CALL_PRIVILEGED -d电话:12345
You can reproduce this Intent
on the command line:
adb -e shell am start -a android.intent.action.CALL_PRIVILEGED -d tel:12345
这将导致以下(很好格式)logcat的输出:
Which results in the following (nicely-formatted) logcat output:
Starting activity: Intent {
act=android.intent.action.CALL_PRIVILEGED
dat=tel:12345
flg=0x10000000
cmp=com.android.phone/.PrivilegedOutgoingCallBroadcaster
}
这说明你的 com.android.phone
应用程序处理这个特殊的意图
。
This shows you that the com.android.phone
application handles this particular Intent
.
这篇关于其中活动处理Intent.ACTION_CALL_PRIVILEGED?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!