开发者

how to display new message when system reaches the given time?

开发者 https://www.devze.com 2023-03-31 11:47 出处:网络
hi all how to adjust code for displaying the time and date as like system time and date. and how to d开发者_如何转开发isplay the new toast message if system time is 12:30:20pm date 27-08-2011my given

hi all how to adjust code for displaying the time and date as like system time and date. and how to d开发者_如何转开发isplay the new toast message if system time is 12:30:20pm date 27-08-2011 my given time is 04:40:09 pm My date 28-08-2011 in between this time i fixed 120 minute when system reaches the 120 minute i have to display one toast like "u have new message". so help me to solve the problem


You could use a handler that waits for a message. To this handler you could send a delayed (120 minutes) message:

http://developer.android.com/reference/android/os/Handler.html#sendMessageDelayed%28android.os.Message,%20long%29

0

精彩评论

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