如何使用警报管理器 [英] How to use Alarm Manager

查看:83
本文介绍了如何使用警报管理器的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述



我是Android的新手,我希望在应用程序启动30秒后收到通知.

我认为我需要为此使用警报管理器,但是我不确定这是如何工作的.

所以,有人可以帮我吗.

请尽快告诉我.

谢谢,
Jason

Hi,

I am new to Android and I want to get a notification after 30 seconds from the start of my application.

I think I need to use the alarm manager for that, but I am not sure how does that work.

So, can anyone please help me with that.

Please let me know asap.

Thanks,
Jason

推荐答案

这是当您搜索"android alarmmanager"时返回的132,000个结果中的第一个:

http://developer.android.com/reference/android/app/AlarmManager.html [ ^ ]

而且您的用户ID拼写不正确-是"Bourne",而不是"Borne"(当然,除非您的姓氏是"Borne").
This is the first of 132,000 results returned when you google "android alarmmanager":

http://developer.android.com/reference/android/app/AlarmManager.html[^]

And you spelled your user ID incorrectly - it''s "Bourne", not "Borne" (unless of course, your last name really is "Borne").


这篇关于如何使用警报管理器的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆