Jaydeepsinh Jadeja
Jaydeepsinh Jadeja

Reputation: 391

How to start service at the particular time?

I am working on application in which I want to start service at the particular time. I have stored the time in database table. Now, I have the list of the time when service would be started. So, how can I start service at all of these time?

Upvotes: 1

Views: 723

Answers (2)

Hassy31
Hassy31

Reputation: 2813

Use android AlarmManager to schedule alarms. you can register multiple alarms for your application.

hope this link helps you

Upvotes: 1

user755278
user755278

Reputation: 1634

You want the Android Alarm Manager:

This class provides access to the system alarm services. These allow you to schedule your application to be run at some point in the future.

Hope this link helps you.

Upvotes: 1

Related Questions