这是我从“接收的消息广播”中提取发件人地址和消息正文的发件人地址的方式
Object[] pdus = (Object[])intent.getExtras().get("pdus");
SmsMessage shortMessage = getIncomingMessage(pdus[0],intent.getExtras());
if(shortMessage != null){
String addr = shortMessage.getDisplayOriginatingAddress();
String sms_body = shortMessage.getDisplayMessageBody();
Toast.makeText(context, "From "+addr, Toast.LENGTH_LONG).show();
Toast.makeText(context, "Body "+sms_body, Toast.LENGTH_LONG).show();
}
我怎么知道哪个SIM卡正在接收消息。