Android - Running a background task every 15 minutes, even when application is not running

后端 未结 5 766
灰色年华
灰色年华 2020-12-05 05:35

I need to build a background task that runs every 10/15 minutes (doesn\'t really matter, either is good), even when the application is not running.

How can I accompl

5条回答
  •  时光说笑
    2020-12-05 06:03

    Alarm Manager (system service) vs Remote Service with inner alarm implementation (separate process)?

    Alarm Manager is your choice, because it already has what you need, you just have to set alarm intervals

提交回复
热议问题