【发布时间】:2016-03-28 09:01:43
【问题描述】:
我一直在努力在 android 网络中找到正确的 CellID。我正在尝试搜索教程,我找到了类似这样的解决方案:
telephonyManager = (TelephonyManager)getSystemService(Context.TELEPHONY_SERVICE);
cellLocation = (GsmCellLocation) telephonyManager.getCellLocation();
然后要访问 CellID,请使用以下代码:
cellLocation.getCid() % 0xffff
当我运行应用程序时,我得到了一个 ID 号。但是,问题是不同的 IDCELL 与 G Nettrack 应用程序作为参考。然后,CELLID 与原始数据不匹配。 请帮忙!谢谢
【问题讨论】:
-
哪种网络类型? LTE?
-
我一直在试3g