Can somebody give good logic for set repeat days of week alarm? I have done weekly Alarm by using
alarmCalendar.set(Calendar.HOUR, AlarmHrsInInt
Intent intent1 = new Intent(getApplicationContext(),
NotificationReceiver.class);
PendingIntent pendingIntent1 = PendingIntent.getBroadcast(getApplicationContext(),
1,
intent1,
PendingIntent.FLAG_UPDATE_CURRENT);
AlarmManager alarmManager1 = (AlarmManager)getSystemService(ALARM_SERVICE);
java.util.Calendar calendar1 = java.util.Calendar.getInstance();
calendar1.set(java.util.Calendar.DAY_OF_WEEK,
Calendar.MONDAY);
calendar1.set(java.util.Calendar.HOUR_OF_DAY,
22);
calendar1.set(java.util.Calendar.MINUTE,
8);
calendar1.set(java.util.Calendar.SECOND,
0);
alarmManager1.setExact(AlarmManager.RTC, calendar1.getTimeInMillis(), pendingIntent1);