问题描述
在 ACTION_NEW_OUTGOING_CALL
已播出,我需要捕捉对方回答以下事件。你能就如何实现他的意见吗?我知道这是可能由于Android拨号器应用程序改变的绿色机器人图标的人的照片excatly,当他们拿起。谢谢!
Once ACTION_NEW_OUTGOING_CALL
has been broadcasted, I need to capture the following event of the other party answer. Could you advice on how to achieve that please? I know it is possible as the android dialer app changes the green android icon to the person's photo excatly when they pick up. Thanks!
更新:我有一个看在Android应用程序处理呼出电话的来源。我注意到,在下面的方法 ContactsUtils
:
UPDATED: I've had a look at the source of the app on Android handling the outgoing calls. I noticed the following method in ContactsUtils
:
/**
* Kick off an intent to initiate a call.
*/
public static void initiateCall(Context context, CharSequence
phoneNumber) {
Intent intent = new Intent(Intent.ACTION_CALL_PRIVILEGED,
Uri.fromParts("tel", phoneNumber.toString(), null));
context.startActivity(intent); }
我想我的答案是,在活动侦听 Intent.ACTION_CALL_PRIVILEGED
。因此,要reprhase我的问题:有没有人知道哪个活动手柄 Intent.ACTION_CALL_PRIVILEGED
?谢谢先进
I guess my answer is in the activity listening for Intent.ACTION_CALL_PRIVILEGED
. So to reprhase my question: Does anyone know which activity handles Intent.ACTION_CALL_PRIVILEGED
? Thank you in advanced
推荐答案
我不认为有这样的API,也有用于发送DTMFs原因是,你不能告诉当呼叫连接同样的原因没有API
I don't think there's such API and also there's no API for sending DTMFs due to the same reason that you can't tell when the call is being connected.
这篇关于检测是否呼出已回答的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!