我只在 Android 4.2.2 设备中遇到本地化问题。
当我使用正常流程进行定位并启用精确定位权限时,GPS 图标永远不会消失。问题是即使 GPS 未获取本地化,图标也会出现,例如使用 getLastKnownLocation (例如,使用这个有用的提示https://code.google.com/p/android-protips-location/source/browse /trunk/src/com/radioactiveyak/location_best_practices/utils/GingerbreadLastLocationFinder.java)或网络提供商。
本地化过程正常,基于位置最佳实践:https ://code.google.com/p/android-protips-location/source/browse/trunk/src/com/radioactiveyak/location_best_practices/ Reto Meier 创建的项目在这篇文章中: http ://android-developers.blogspot.com.es/2011/06/deep-dive-into-location.html
当然,locationmanager 和 listener 都停止了,置为 null。该问题仅适用于 Android 4.2.2 版本。你知道这是否是Android错误吗?
先感谢您!