根据Android doc,它表示将来会弃用getCellLocation API电话。有没有人知道为什么它会被弃用?如果这是弃用那么,还有其他替代方法来获取Cell Location信息吗?
getCellLocation API
Reference
替换方法将是TelephonyManager.getAllCellInfo()。
TelephonyManager.getAllCellInfo()
从文档中的描述:
此方法优于使用getCellLocation()。但是,对于较旧的设备,getAllCellInfo()可能返回null。在这些情况下,您应该调用getCellLocation()。