【发布时间】:2018-05-21 07:08:40
【问题描述】:
我需要检查我的onReceive() 的BroadcastReceiver 方法中是否启用了位置设置,以获取位置更新并使用该位置继续进行。我知道如何从使用LocationManager 或SettingsApi 的活动中执行此操作,但如何从BroadcastReceiver 执行相同操作?
【问题讨论】:
-
你到底想做什么?解释一切
-
您可以在广播接收器中使用 LocationManager
标签: android location broadcastreceiver google-location-services