I want to generate android notification or alarm e

2019-09-15 01:34发布

问题:

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