Android daily notification

2019-04-11 08:27发布

问题:

How can I cause the Android system to show a notification from my app, at a daily hour? Do I need a service, and if so how do I handle it Thanks

回答1:

you don't need a service. You can use the AlarmManager to get a Broadcast at required time. Listen to it in your BroadcastReciever and send your Notification there. After Notification was send, register another alarm in it.