Best way to constantly monitor location

前端 未结 2 613
北恋
北恋 2021-02-09 18:35

I want to monitor a user\'s location on a regular basis, like Google Latitude does. Something that would wake the phone up every X minutes, even if the app is currently not run

2条回答
  •  春和景丽
    2021-02-09 19:11

    Have you looked into writing a service to handle this?

    I would be a bit concerned about battery life though, so I'd make the 'X' configurable, if that's appropriate

提交回复
热议问题