0

How to get dual sim device mobile number from android programatically. I am getting only the default sim number. Is there any way to get both sim mobile numbers. I tried with below code.But getting only default sim with slot 0

SubscriptionManager localSubscriptionManager = (SubscriptionManager)getSystemService(Context.TELEPHONY_SUBSCRIPTION_SERVICE);
List localList = localSubscriptionManager.getActiveSubscriptionInfoList();
SubscriptionInfo simInfo = (SubscriptionInfo) localList.get(simSlot);0/1
DevWithZachary
  • 3,545
  • 11
  • 49
  • 101

0 Answers0