1
  • 最佳答案
     This method is preferred over using {@link
    * android.telephony.TelephonyManager#getCellLocation getCellLocation()}.
    * However, for older devices, <code>getAllCellInfo()</code> may return
    * null. In these cases, you should call {@link
    * android.telephony.TelephonyManager#getCellLocation getCellLocation()}
    * instead.
    *
    * @return List of {@link android.telephony.CellInfo}; null if cell
    * information is unavailable.
    


    根据Android API解释,在高版本系统上推荐使用来获取,但对于老版本系统来说,此时可能返回的是空指针,此时推荐调用getCellLocation来代替,既然你现在得到的是空指针,你可以试试getCellLocation,看能否获得你想要的信息。

    1255088796991492096  评论     打赏       冒着泡泡的汽水儿
  • 已解决,谢谢大家

    1493134649726197762  评论     打赏       erxiong3344
    • 得到相邻小区的信号强度?


      这个是啥意思?

      1153952789488054272  评论     打赏       拉大锯
      • erxiong3344  回复 @拉大锯
        做出Celluar-z这款软件的效果,不仅能得到当前服务小区的信息,还能得到相邻小区的rsrp,rsrq,rssi等信息
        erxiong3344 2022-02-14 18:50   回复 1493134649726197762
    相关问题
    kissmyass · 安卓
    2019-12-11 04:41 713 2
    珂珂范范 · 安卓
    2019-12-19 00:59 559 2
    2020-01-31 00:31 693 2
    谁都不许动我的砖 · 安卓 / xml
    2020-02-05 19:16 1184 2
    谁都不许动我的砖 · 安卓
    2020-02-06 06:24 764 2
    珂珂范范 · 安卓模拟器
    2020-02-21 11:10 842 2
    珂珂范范 · 安卓
    2020-02-29 23:50 429 2
    mercenary · 安卓
    2020-03-22 02:34 358 2
    哦豁! · 安卓报错
    2020-03-22 23:17 684 4
    Pancica · 安卓
    2020-03-23 02:13 520 2
    Pancica · 安卓
    2020-03-30 08:22 452 2
    kuro · 安卓
    2020-04-04 00:17 417 4