KaiZ
KaiZ

Reputation: 391

How do I check a value of an SQLite table in the background, and send a notification every hour?

I've been trying to find out how to do it, maybe using an IntentService, but I'm not sure that's the correct way for what I want to do. Can someone at least point me in the right way?

Upvotes: 0

Views: 43

Answers (1)

Ilya Gazman
Ilya Gazman

Reputation: 32221

To do stuff in background you can use Service, AsyncTask or simply a Thread.

To do work in a loop, you can use Timer, AlarmManager and ScheduledExecutorService, while the most common one will be Handler.

Each one of the above got its own advantages and disadvantages. Read more about them to find what you need.

Upvotes: 1

Related Questions