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.