I am building an android application where I need to get Mcc and Mnc value of SIM. For single SIM I got perfect code but how to use that for dual SIM. I am using below code working fine above lollipop devices to get these two value.
if (android.os.Build.VERSION.SDK_INT >= android.os.Build.VERSION_CODES.LOLLIPOP_MR1)
{
SubscriptionManager manager = SubscriptionManager.from(this);
List<SubscriptionInfo> sil = null;
sil = manager.getActiveSubscriptionInfoList();
if (sil != null) {
for (SubscriptionInfo subInfo : sil) {
Log.v("TestMain", "SubInfo:" + subInfo);
Log.v("SIM_SLOT_INDEX"+ subInfo.getSimSlotIndex() +" mcc", subInfo.getMcc()+"");
Log.v("SIM_SLOT_INDEX"+ subInfo.getSimSlotIndex() + " mnc", subInfo.getMnc()+"");}}
Can some one help me to finding below lollipop version how to can I get Mnc and Mcc value of Both SIM.