[英]Android 4.2 GPS icon cant be removed from notification bar
我僅在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 )或與網絡提供商一起使用。
本地化過程是正常的,具體取決於位置最佳實踐:Reto Meier創建的https://code.google.com/p/android-protips-location/source/browse/trunk/src/com/radioactiveyak/location_best_practices/項目在這篇文章中: http : //android-developers.blogspot.com.es/2011/06/deep-dive-into-location.html
當然,會停止locationmanager和listener並將其設置為null。 該問題僅適用於Android 4.2.2版本。 您知道這是否是Android錯誤嗎?
先感謝您!
聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.