开发者

Show Toast message at 10 minute interval

I'm trying to show a Toast message to the user at a 10 minute interval. I'm doing this:

triggerAtTime = new SimpleDateFormat("yyyy-MM-dd HH:mm:ss").parse("2011-07-12 14:00:00").getTime();

... and now I want to display a T开发者_运维问答oast message when the system time has reached the given time. How can I do this?


you can use service for this, In service you can get the time of system and check it for giving time. After for every 10 minutes just display Toast.


You could do that using the AlarmManager.

0

上一篇:

下一篇:

精彩评论

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

最新问答

问答排行榜