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?

2

1 Answer 1

10

you need this method. SubscriptionManager.getActiveSubscriptionInfoCountMax

3
  • Thanks.. Finally i got the solution its working fine. Commented Apr 20, 2016 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
    Commented Nov 3, 2016 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]. developer.android.com/reference/android/telephony/…
    – Alessio
    Commented Nov 3, 2016 at 12:42

Not the answer you're looking for? Browse other questions tagged or ask your own question.