I want to generate android notification or alarm every day

旧城冷巷雨未停 提交于 2020-01-07 07:49:19

问题


In my application i need to deploy a some kind of reminder. that every day at any fixed time my application generate a notification..

  1. and it happens if my application is running or not. (e.g by using background service)

I am able to generate notification, but im un able to create logic to generate it every day. Please help if any one understand what i want. Thanks in advance.


回答1:


See below link and this is work for me.

Create alarm set on a specified time, using AlarmManager

Repeat alarm everyday accurately



来源:https://stackoverflow.com/questions/40310964/i-want-to-generate-android-notification-or-alarm-every-day

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!