Is it possible to run service in android platform continuously even after locking the device?

后端 未结 8 994
小鲜肉
小鲜肉 2020-12-16 05:44

We have been working on developing service for android platform.

In our service we need to send GPS data (Lat and Long) of device to some external REST service afte

8条回答
  •  失恋的感觉
    2020-12-16 06:31

    You have to fire the alarm over and over again when the service completes running.

    Also you can implement a BroadCastReceiver that starts the service on the device boot.

    Check this tutorial: http://ncona.com/2014/04/schedule-your-android-app-to-do-something-periodically/

提交回复
热议问题