BroadcastReceiver for location

前端 未结 2 1743
遥遥无期
遥遥无期 2020-11-27 17:04

I know BroadcastReceiver watches for text, phone events, etc... but can you run LocationServices as a service and event based on Location?

For example, you are near

2条回答
  •  慢半拍i
    慢半拍i (楼主)
    2020-11-27 17:25

    This question is more then 2 years old but there is now very very easy and battery efficient way to do this. The concept is called Geofences. You can learn it in more detail below:

    http://developer.android.com/training/location/geofencing.html

提交回复
热议问题