Reputation: 195
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
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