【发布时间】:2017-10-10 02:40:25
【问题描述】:
我可以使用下面的代码获得第一个 sim cell tower id。但我想获得第二个 sim2 单元格 ID。
TelephonyManager telephonyManager = (TelephonyManager)getSystemService(Context.TELEPHONY_SERVICE);
GsmCellLocation cellLocation = (GsmCellLocation) telephonyManager.getCellLocation();
int nowcid = cellLocation.getCid();
int nowlac = cellLocation.getLac();
关于这个有很多问题。但我用 android 6.0 samsung j7 2016 测试了所有代码,但没有得到 sim2 单元格 ID。 有人说这在其他问题上是不可能的,但 Network Cell Info Lite app https://play.google.com/store/apps/details?id=com.wilysis.cellinfolite&hl=en 在我测试的每台设备上从 sim2 获取单元格 ID。
【问题讨论】:
-
这个问题有什么解决办法吗?
标签: android location telephonymanager dual-sim cellid