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.
是否可以从 LocationManager 中删除所有 LocationListeners?如果是,如何?
正如文档所说:
使用给定的 LocationListener 删除当前活动的位置更新的任何当前注册。在此调用之后,此侦听器将不再发生更新。
removeUpdates(LocationListener 监听器)