How to run a service every day at noon, and on every boot

后端 未结 3 574
孤街浪徒
孤街浪徒 2020-11-27 14:51

In my app I have SQLite database that has one table with date rows in milliseconds. I would like to have a notification shown every day IF 30 days has passe

3条回答
  •  夕颜
    夕颜 (楼主)
    2020-11-27 15:42

    This answer seems pretty old. Now, I would totally recommend people to check out SyncAdapter framework provided by Google. It is custom made for such things. Here's the link: https://developer.android.com/training/sync-adapters/index.html

提交回复
热议问题