问题
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