我正在尝试获取所有SIM卡插槽的语音状态。收听“ android.intent.action.SERVICE_STATE”很容易。有没有意图或听众的办法吗? 例如在api> = 26上我可以
telephoneManager.createForSubscriptionId(subId).getServiceState().getState()
PS:我想检查一下我是否可以信任isNetworkRoaming()。文档说此方法“可用性:仅当用户注册到网络时。”
相似的问题:How to check if a Android phone has registered to a network or not