0

I am developing an android app.I wan to provide five notifications per day.I will store the notification time in sqlite database.Then I compare this db notification time with the devices time in a repeating loop using service.But the notification will not work properly.Forceclose appeared.....I need the help

4

1 回答 1

0

您需要使用AlarmManager来安排任务。注册 aBroadcastReceiverNotification在其onReceive()方法中创建。AlarmManager然后用 a初始化PendingIntentBroadcastReceiver使用的set()方法。希望这可以帮助。

于 2012-07-23T12:21:17.893 回答