通过特定的SIM卡从日志中获取呼叫 [英] Get calls from log by specific SIM

查看:154
本文介绍了通过特定的SIM卡从日志中获取呼叫的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我想从Android CallLog收到呼叫。这些呼叫是从特定的SIM卡发出的。有没有办法检查使用哪个SIM卡拨打电话?
使用以下方法可以在执行呼叫并运行应用程序时检查SIM卡。
(TelephonyManager)getSystemService(Context.TELEPHONY_SERVICE).getSimSerialNumber();
如何在安装应用程序之前检查使用哪个SIM卡拨打电话?

I want to get calls from Android CallLog.Calls which were made from a specific SIM. Is there's a way to check which SIM was used to make call? The following method allows to check SIM when call is performed and app is running. (TelephonyManager)getSystemService(Context.TELEPHONY_SERVICE).getSimSerialNumber(); How to check which SIM was used to make calls before app is installed?

推荐答案

位于 CallLog.Calls 类,似乎没有保留SIM信息的字段(例如拨打电话时使用哪个SIM)。

In the CallLog.Calls class, there don't seems any field that keeps SIM Information (like which SIM is used while making an outgoing call).

因此,我想无论您是否安装或未安装您的应用程序,呼叫日志内容提供程序似乎都不会维护SIM卡专用,例如从哪个SIM卡发起了呼叫。

So, I guess it make no difference if your app was installed or not installed, the Call Log Content provider does not seems to maintain SIM-Sepcific, such as from which SIM the call has been initiated.

这篇关于通过特定的SIM卡从日志中获取呼叫的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆