android: NeighboringCellInfo always empty !? why?

后端 未结 2 1090
孤独总比滥情好
孤独总比滥情好 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 21:08

    getNeighboringCellInfo() is deprecated in android . You should use getAllCellInfo() and save output of that in a List and using a loop on each element of List decide which is neighbor using element.isRegistered() . NeighboringCells have isRegistered() == false .

提交回复
热议问题