在Android的重新启动后,将报警保存 [英] Save Alarm after Reboot in Android
问题描述
我是新来的机器人。我正想通过手动,并阅读以下内容:
I am new to android. I was going through the manual, and read following:
当设备处于睡眠状态(并且可以选择唤醒设备,如果他们在这段时间内熄灭),但如果它被关闭并重新启动将被清除已注册的警报被保留
可以报警被保存在应用程序。如果是的话你能告诉我怎么了。
Can the alarm be saved in the app. If yes Can you please tell me how.
能否请您为我提供的code。
Can you please provide me with the code.
推荐答案
这应该让你去。
总之,你从保持手表上的报警本身缓解你的应用程序。
相反,你告诉系统来跟踪它适合你,只是创建应由系统被唤醒的一类,一旦警报响起。
This should get you going. In short, you relieve your app from keeping a watch on the alarm itself. Instead you tell the system to keep track of it for you, and just create a class that should be awoken by the system once the alarm goes off.
的http://www.vogella.com/articles/AndroidServices/article.html#scheduleservice_scheduling
这篇关于在Android的重新启动后,将报警保存的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!