在后台创建警报和通知应用程序 [英] Creating alert and notification application in background
本文介绍了在后台创建警报和通知应用程序的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
大家好
我是android的新手,我想创建一个提醒你的应用程序,并在时机成熟时给你通知,我希望该应用程序仍在后台运行你关闭了界面。
ex:
如果你把日期设置为21-03-2014并将时间设置为10:30 AM,那个日期和时间来,应用程序将自动运行并警告你,并出现一条消息,提醒你做一些事情。
你能帮助我吗?
解决方案
您可以运行服务 [ ^ ]并启动计时器 [ ^ ]不触发ification。
Hi all
I am new in android, I want to create an application that alerts you and gives you a notification when its time comes, and I want that application to still run in the background even you closed the interface.
ex:
if you set the date to be 21-03-2014 and set the time to 10:30 AM, when this date and time come, the application will running automatically and alarming you and appears a message to remind you to do some thing.
Can you help me, please?
解决方案
You can run a Service[^] and start a Timer[^] to trigger notification.
这篇关于在后台创建警报和通知应用程序的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文