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

后端 未结 5 768
灰色年华
灰色年华 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:07

    You can also achieve this via a SyncAdapter Here's a sample for your to look at and get inspired

    SyncAdapter sample

提交回复
热议问题