Get calls from log by specific SIM

徘徊边缘 提交于 2019-12-12 02:00:07

问题


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?


回答1:


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).

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.



来源:https://stackoverflow.com/questions/28297245/get-calls-from-log-by-specific-sim

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!