android - android TelephonyManager 是否缓冲 GSMCellILocation?

标签 android telephonymanager

我一直面临这样一种情况,我观察到即使手机中没有 SIM 卡,Android 的 TelephonyManager 也会向我提供位置区域代码和小区 ID。

        cellLocation = (GsmCellLocation) mTMInstance.getCellLocation();
        if(cellLocation == null)
            return false;
        currentCellID = ((GsmCellLocation)cellLocation).getCid();
        currentLac = ((GsmCellLocation)cellLocation).getLac();
        currentImsi = mTMInstance.getSubscriberId();

有人可以确认您是否遇到过类似问题吗?我在 froyo 上编译并在 Gingerbread 上运行该应用程序。

最佳答案

发表一些观察后,我得出结论,即使 SIM 卡不可用,Android(和黑莓)也可以提供网络详细信息。这样做的原因是手机内置了 gsm radio ,不需要 SIM 卡来检测网络,而只需选择其中一个网络。

关于android - android TelephonyManager 是否缓冲 GSMCellILocation?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/8870686/

相关文章:

android - 如何在启用 "automatic"时间设置的情况下更改平板电脑的时区?

安卓 : split the screen in 2 equals parts with 2 listviews

java - 当我尝试清除所有数据时,应用程序已停止

java - fragment 中的画廊

android - 为什么我查不到丹麦SIM卡的手机号码?

android - 如何以编程方式接收来电?

android - 如何在android中检查设备是平板电脑,手机还是Android TV

android - 如何在 telephonymanager android 中读取 cellInfo 中的数据

android - 如何在android中修改来电和去电屏幕 View

Android:获取基站和相邻小区的小区 ID 和 RSS