get both simcard operator name in dual SIM mobile

前端 未结 5 1588
不思量自难忘°
不思量自难忘° 2021-01-06 09:10

I want to know Both sim card\'s operator name when mobile is dual sim.In single SIM I got operator name programmatically But For duel SIM I can\'t although after so many sea

5条回答
  •  伪装坚强ぢ
    2021-01-06 10:01

    Since API version 22 its possible

    try following code for device having os greater than android 5.1

    List subscriptionInfos = SubscriptionManager.from(getApplicationContext()).getActiveSubscriptionInfoList();
    for(int i=0; i

    for more information : Documentation: SubscriptionManager - Android Hope it helps. Peace.

提交回复
热议问题