-1

我是安卓新手。我正在阅读手册,并阅读以下内容:

Registered alarms are retained while the device is asleep (and can optionally wake the device up if they go off during that time), but will be cleared if it is turned off and rebooted

是否可以将警报保存在应用程序中。如果是,你能告诉我怎么做。

能否请您提供我的代码。

4

1 回答 1

0

这应该让你继续前进。简而言之,您可以让您的应用程序免于监视警报本身。相反,您告诉系统为您跟踪它,并且只需创建一个应在警报响起时由系统唤醒的类。

http://www.vogella.com/articles/AndroidServices/article.html#scheduleservice_scheduling

于 2013-01-29T08:09:11.627 回答