3

Is there any method to get carrier names in both slots in a dual SIM Android phone? There is a method but it only detects the carrier in slot 1. To do that, I use the following code:

TelephonyManager manager = (TelephonyManager)
getSystemService(Context.TELEPHONY_SERVICE);    
String carrierName = manager.getNetworkOperatorName();

1 Answers1

0

See this Answer... Detect the status of two SIM cards in a dual-SIM Android phone

There is not Support the dual SIM from the SDK.

Since API 22, you can check for multiple SIMs using SubscriptionManager's method getActiveSubscriptionInfoList(). More details on Android Docs.

Community
  • 1
  • 1
Arjun saini
  • 4,223
  • 3
  • 23
  • 51
  • Thanks..I go through that answer.But it gives some errors..can you put full class and where should it call...?actually I'm very newly for android. – Ishani Fonseka Jul 11 '16 at 05:14