sachi
sachi

Reputation: 195

How to set alarm

Can any body tell me how to set the alarm? I have one time picker but every time when I kill my application time is also updating with current system time.

Upvotes: 1

Views: 376

Answers (2)

MByD
MByD

Reputation: 137272

You should use AlarmManager for that. Look here for an example.

The example in the docs (link above) should be sufficient. Use sql.Date to get the actual date from the sql and convert it to milliseconds to set the alarm.

Upvotes: 2

ms.
ms.

Reputation: 109

Try the AlarmManager class.

Upvotes: 2

Related Questions