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
问问题
272 次
1 回答
0
您需要使用AlarmManager来安排任务。注册 aBroadcastReceiver
并Notification
在其onReceive()
方法中创建。AlarmManager
然后用 a初始化PendingIntent
你BroadcastReceiver
使用的set()
方法。希望这可以帮助。
于 2012-07-23T12:21:17.893 回答