Android TelephonyManager getCellllLocation,即将弃用?
Android TelephonyManager getCelllLocation, getting deprecated?
根据 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 文档,它说 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.