1

对于双 SIM 卡设备,如何获取从属插槽中的 NetworkOperatorName。我的主 SIM 卡已停用。

4

2 回答 2

4

我没有在 android API 上找到任何东西来获取所有 SIM 运营商的详细信息。只有我们可以获得当前网络运营商或 SIM 运营商的名称

TelephonyManager telephonyManager =((TelephonyManager) Context.getSystemService(Context.TELEPHONY_SERVICE));
String operatorName = telephonyManager.getNetworkOperatorName();

SIM 运营商可以通过以下方式检索:

String operatorName = telephonyManager.getSimOperatorName();
于 2012-01-05T07:34:50.017 回答
0

您需要使用https://developer.android.com/reference/android/telephony/SubscriptionManager.html#getActiveSubscriptionInfoList(SubscriptionManager )getActiveSubscriptionInfoList()

但是,请记住,它仅在 API 级别 22 中添加

于 2016-08-19T10:37:36.510 回答