repeat - Android Notification repeatation -


I want to set the notification for an event that will be repeated every day. Therefore, notification should come everyday at the time of incident. How to set up any notification in Notification Manager that it repeats after some time.

If you are using alarm-maker class, it is easy to setup a service

The alarm manager class has a set repeating method that repeats your alarm call at the given interval after a given time.

Like

  AlarmManager alarmManager = (Get AlarmManager) GetSystemService (ALARM_SERVICE); Intent AlarmIntent = New Intent (CONTEXT, RECEIVERCLASS.class); ID, alarm, pending provider. FLAG_UPDATE_CURRENT); AlarmManager.Settering (Alarm Manager. RTC_wekup, YOURCALENDAR.getTimeInMillis (), AlarmManager.INVAL_DAY, Sender);   

In the setRepeating argument, you can set up YOURCALENDAR member for your desired time ......

Comments