I want to set notification for an event which will repeat every day. So the notification should come everyday at event time. How to set any notification in NotificationManager so that it repeats after certain period of time.
If you are using AlarmManager class, it's more easier that to setup a service.
alarmManager class has a setRepeating method that repeats your alarm call at given interval after given time.
Like..
AlarmManager alarmManager = (AlarmManager) getSystemService(ALARM_SERVICE);
Intent AlarmIntent = new Intent(CONTEXT, RECEIVERCLASS.class);
ID,AlarmIntent, PendingIntent.FLAG_UPDATE_CURRENT);
alarmManager.setRepeating(AlarmManager.RTC_WAKEUP,YOURCALENDAR.getTimeInMillis(), AlarmManager.INTERVAL_DAY, Sender);
In the setRepeating argument, you can set the YOURCALENDAR member to the time you want......