I\'m trying to give the user a notification each day on a certain time so I use an AlarmManager with a notification. I have this:
public void check_products(
use this Example for reference..
http://androidideasblog.blogspot.in/2011/07/alarmmanager-and-notificationmanager.html
Use This code for Repeating alarm in it..
AlarmManager am = (AlarmManager) MainActivity.this.getSystemService(MainActivity.this.ALARM_SERVICE);
am.setInexactRepeating(AlarmManager.RTC_WAKEUP, calendar.getTimeInMillis(),
AlarmManager.INTERVAL_DAY, alarmIntent);