我可以使用下面的代码获得第一个 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 应用程序https://play.google.com/store/apps/details?id=com.wilysis.cellinfolite&hl=en 在我测试的每台设备上从 sim2 获取单元格 ID .