我找不到文档:如何使用android.intent.action.CALL_PRIVILEGED和android.intent.action.NEW_OUTGOING_CALL?
android.intent.action.CALL_PRIVILEGED
我看到它是用于例如csipsimple处理呼叫。
我想更好地了解如何使用它。例如: android.intent.action.CALL_PRIVILEGED
和android.intent.action.NEW_OUTGOING_CALL
之间有什么关系?
我说:
<intent-filter>
<action android:name="android.intent.action.CALL_PRIVILEGED" />
<category android:name="android.intent.category.DEFAULT" />
<data android:scheme="tel" />
</intent-filter>
在AndroidManifest为我的项目。当一个呼叫从原生拨号器开始,我的活动就叫做但是,如果在的onResume我做getIntent()的getAction()的结果为空
编辑
我做了它的工作处理onNewIntent以及onCreate。 onResume接收一个没有动作的意图(由默认的onNewIntent处理程序发送,我想)。
问题是,要检查操作是否为CALL_PRIVILEGED,我必须对字符串“android.intent.action.CALL_PRIVILEGED”进行硬编码,因为操作CALL_PRIVILEGED已隐藏。
我试图注册该活动仅ACTION_CALL并没有奏效
http://stackoverflow.com/questions/2296905/which-activity-handles-intent-action-call-privileged可能你会发现这个答案有帮助 –
这里的文档http://developer.android.com/ reference/android/Manifest.permission.html 说关于CALL_PRIVILEGED“允许应用程序呼叫任何电话号码,包括紧急电话号码,而无需通过拨号程序用户界面以供用户确认呼叫正在进行。” 你在找什么其他信息? –
但这是关于许可而不是行为的权利?我正在寻找有关行动 – kingston