作者热门文章
- iOS/Objective-C 元类和类别
- objective-c - -1001 错误,当 NSURLSession 通过 httpproxy 和/etc/hosts
- java - 使用网络类获取 url 地址
- ios - 推送通知中不播放声音
我想检查哪个 SIM 卡正在为双卡 android 手机拨出电话。阅读本文 Android : Check whether the phone is dual SIM .
工作起来很有魅力,可以检测 SIM 卡状态以及手机是否为双 SIM 卡。下一步是在拨出调用请求期间获取 SIM 卡信息,以便我知道哪个 SIM 卡正在调用电话,并据此采取一些行动。
有人可以帮我吗?
最佳答案
我已经测试过,对于 Jelly Bean,我能够成功识别拨号 SIM 卡。还使用三重 SIM 卡设备进行了测试,效果非常好。
BroadcastReceiver 中的代码 fragment :
int whichSIM = 0; // this for security fallback to SIM 1
if (intent.getExtras().containsKey("subscription")) {
whichSIM = intent.getExtras().getInt("subscription");
}
// do whatever you need to with the information
关于android - 如何找出哪个 SIM 卡正在拨出电话(双 SIM 卡),我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/18656373/
Okey İ 解决了我的问题, 问题是供应商。它拒绝了我的请求!所有问题提供者都意味着中继! 我有一个 asterisk server 1.6 和一个 trunk。我试图通过中继线(提供商)调用我的手
我是一名优秀的程序员,十分优秀!