android: NeighboringCellInfo always empty !? why?

后端 未结 2 1096
孤独总比滥情好
孤独总比滥情好 2021-01-11 20:45

i\'m trying to get info about the neighboring cells my phone can \"see\" atm. so far so good. i do this like this:

telManager = (TelephonyManager) context.ge         


        
2条回答
  •  小鲜肉
    小鲜肉 (楼主)
    2021-01-11 20:51

    I've seen several questions on the same issue but it seems like none of them got a good and deterministic solution. The most common suggestion is to make sure you have the correct permission (which I see you do in your question) and there are some that say that this only works on 2G and not 3G.

    Take a look at the following similar questions. It might point you in some new directions:

    getNeighboringCellInfo() returning null list

    Null Issue with NeighboringCellInfo, CID and LAC

    Get neighboring cell in Android returns null

提交回复
热议问题