Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
プロキシミティアラートをすでに削除しているのに、GPSアイコンが通知バーに表示されるのはなぜですか
removeProximityAlert
AddProximityAlertに与えたのと同じPendingIntentを与えたところ、Proximity Alertは機能しなくなりましたが、GPSアイコンは消えていません。
それは、デバイスがまだ私の位置を取得してバッテリーを消耗しようとしていることを意味しますか?
解決策は、PendingIntentのフラグをFLAG_UPDATE_CURRENTに変更することです。
これを試してアイコンを閉じます
locationManagerGPS.removeUpdates(GPSLocationListener);
その後、もう一度確認してください