基站定位得到的cid数值不对

luckyboy1979 2013-11-12 03:24:41
TelephonyManager mTelephonyManager =(TelephonyManager)getSystemService(Context.TELEPHONY_SERVICE);

// 返回值MCC + MNC
String operator = mTelephonyManager.getNetworkOperator();
int mcc = Integer.parseInt(operator.substring(0, 3));
int mnc = Integer.parseInt(operator.substring(3));

// 中国移动和中国联通获取LAC、CID的方式
GsmCellLocation location = (GsmCellLocation) mTelephonyManager.getCellLocation();
int lac = location.getLac();
int cellId = location.getCid();

我是移动的手机,得到的MCC,MNC和LAC都对,就是CellID不对。CellID的值是220234061,有时又是220205921,就在公司的办公室。
下了一个基站定位的软件,显示的CellID是4961,显示的详细地址也是对的。
我为什么会得到这么奇怪的值呢?
...全文
316 2 打赏 收藏 转发到动态 举报
写回复
用AI写文章
2 条回复
切换为时间正序
请发表友善的回复…
发表回复
luckyboy1979 2013-11-12
  • 打赏
  • 举报
回复
这个cid可能是移动3G的cid,有的网站查不到,我在http://www.haoservice.com/freeLocation/可以查到我得到220234061和220205921,显示的地址应该是对的。
luckyboy1979 2013-11-12
  • 打赏
  • 举报
回复
我是移动3G的,我下载的【基站侦测】可以得到正确的cid和lac数据。 我该怎么做呢?

80,351

社区成员

发帖
与我相关
我的任务
社区描述
移动平台 Android
androidandroid-studioandroidx 技术论坛(原bbs)
社区管理员
  • Android
  • yechaoa
  • 失落夏天
加入社区
  • 近7日
  • 近30日
  • 至今
社区公告
暂无公告

试试用AI创作助手写篇文章吧