且构网

分享程序员开发的那些事...
且构网 - 分享程序员编程开发的那些事

检测在双SIM卡Android手机的两个SIM卡的状态

更新时间:2022-11-01 20:34:34

Android不支持多SIM卡,从SDK最少。谁创造多SIM设备设备制造商对自己这样做。欢迎您咨询您的设备制造商,看看他们是否有一个SDK插件或东西,可以让你进入第二个SIM卡。

Android does not support multiple SIMs, at least from the SDK. Device manufacturers who have created multi-SIM devices are doing so on their own. You are welcome to contact your device manufacturer and see if they have an SDK add-on or something that allows you to access the second SIM.

编辑: (2015年7月15日)

自22 API,您可以检查使用多个SIM卡 SubscriptionManager 的方法 getActiveSubscriptionInfoList()。在Android文档。

Since API 22, you can check for multiple SIMs using SubscriptionManager's method getActiveSubscriptionInfoList(). More details on Android Docs.