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.