I would like to check which SIM is making an outgoing call for DUAL SIM android phones. Read this article Android : Check whether the phone is dual SIM.
Works like a
I've tested and for Jelly Bean I was able to successfully identify the dialling SIM card. Tested also with triple SIM device and worked like a charm.
Code snippet for this inside your BroadcastReceiver:
int whichSIM = 0; // this for security fallback to SIM 1
if (intent.getExtras().containsKey("subscription")) {
whichSIM = intent.getExtras().getInt("subscription");
}
// do whatever you need to with the information