6

After a lot of research, I know the information about total active SIM. But I want to know about total number of SIM slot (SIM active or not) are in mobile. So my question is,

Can we detect that the phone has single SIM or multi SIMs?

Tejas Patel
  • 240
  • 4
  • 12

1 Answers1

10

you need this method. SubscriptionManager.getActiveSubscriptionInfoCountMax

Jiang YD
  • 3,205
  • 1
  • 14
  • 20
  • Thanks.. Finally i got the solution its working fine. – Tejas Patel Apr 20 '16 at 10:53
  • 2
    Generally speaking, methods suggesting reflections and such rely on the SIM being present in the slot. So far getActiveSubscriptionInfoCountMax() on the other hand is the only one which returns the proper value, for instance 2 even when 1 SIM only is present. – Alessio Nov 03 '16 at 12:30
  • 2
    While getActiveSubscriptionInfoCountMax() requires API 22, since API 23 they added getPhoneCount() which actually mention the dual sim functionality in the docs [1]. https://developer.android.com/reference/android/telephony/TelephonyManager.html#getPhoneCount() – Alessio Nov 03 '16 at 12:42