在安卓服务器上每2分钟更新一次java位置 1 周,3 日 Questions & Answers 387 方法每2分钟将位置上载到服务器。 我目前正在使用Alarm Manager,某些操作系统会关闭Alarm Manager,并且在特定的时间间隔后报警不会响起。我还可以使用哪些其他解决方案
# 1 楼答案 请阅读本文: https://developer.android.com/topic/performance/scheduling.html#am The AlarmManager API is another option that the framework provides for scheduling tasks. This API is useful in cases in which an app needs to post a notification or set off an alarm at a very specific time. 位置管理器-Android系统通过位置管理器在运行时提供位置更改。使用LocationManager#requestLocationUpdates可以实现重复更新
# 1 楼答案
请阅读本文: https://developer.android.com/topic/performance/scheduling.html#am
位置管理器-Android系统通过位置管理器在运行时提供位置更改。使用LocationManager#requestLocationUpdates可以实现重复更新