How to get carrier name from dual sim phone Android?

后端 未结 3 647
臣服心动
臣服心动 2021-01-07 06:30

I am able to get the carrier name from duel SIM phone.

I used the following code but it works only single SIM phone.

TelephonyManager telephonyManage         


        
3条回答
  •  伪装坚强ぢ
    2021-01-07 06:49

    As android doesn't support multiple sim atleast below than API level 22.

    Since API 22, you can check for multiple SIMs using SubscriptionManager's method getActiveSubscriptionInfoList(). More details on https://developer.android.com/reference/android/telephony/SubscriptionManager.html#getActiveSubscriptionInfoList%28%29.

    For more detail please refer below link Detect the status of two SIM cards in a dual-SIM Android phone

提交回复
热议问题