作者热门文章
- Java 双重比较
- java - 比较器与 Apache BeanComparator
- Objective-C 完成 block 导致额外的方法调用?
- database - RESTful URI 是否应该公开数据库主键?
根据 Android 文档,它表示 getCellLocation API
调用将在未来弃用。有谁知道为什么它会被弃用?如果这是弃用,那么是否有其他替代方法来获取小区位置信息?
最佳答案
替换方法将是TelephonyManager.getAllCellInfo()
.
来自文档中的描述:
This method is preferred over using getCellLocation(). However, for older devices, getAllCellInfo() may return null. In these cases, you should call getCellLocation() instead.
关于Android TelephonyManager getCellllLocation,是否已弃用?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/36688375/
根据 Android 文档,它表示 getCellLocation API 调用将在未来弃用。有谁知道为什么它会被弃用?如果这是弃用,那么是否有其他替代方法来获取小区位置信息? Reference 最
我是一名优秀的程序员,十分优秀!