开发者

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 sys开发者_StackOverflowtem time.


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.


Try the AlarmManager class.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜