相关疑难解决方法(0)

检测是否已接听拨出电话

一旦ACTION_NEW_OUTGOING_CALL播出,我需要捕获对方回答的以下事件.您能否就如何实现这一目标提出建议?我知道有可能因为Android拨号器应用程序在他们拿起时激动地将绿色的android图标更改为该人的照片.谢谢!

更新:我已经看过Android上处理传出呼叫的应用程序的来源.我注意到以下方法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); }
Run Code Online (Sandbox Code Playgroud)

我想我的回答是在听的活动中Intent.ACTION_CALL_PRIVILEGED.所以重新回答我的问题:有谁知道哪个活动处理Intent.ACTION_CALL_PRIVILEGED?先谢谢你

android telephony android-intent

51
推荐指数
2
解决办法
1万
查看次数

标签 统计

android ×1

android-intent ×1

telephony ×1