gpt4 book ai didi

Android TelephonyManager getCellllLocation,是否已弃用?

转载 作者:搜寻专家 更新时间:2023-11-01 08:35:53 28 4
gpt4 key购买 nike

根据 Android 文档,它表示 getCellLocation API 调用将在未来弃用。有谁知道为什么它会被弃用?如果这是弃用,那么是否有其他替代方法来获取小区位置信息?

Reference

最佳答案

替换方法将是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/

28 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com