how to repeat alarm week day on in android
Posted
by
user1662296
on Stack Overflow
See other posts from Stack Overflow
or by user1662296
Published on 2012-09-20T07:29:39Z
Indexed on
2012/09/20
9:37 UTC
Read the original article
Hit count: 226
I want to get alarm on monday to friday only. my code is here
if (chk_weekday.isChecked()) {
int day = calNow.get(Calendar.DAY_OF_WEEK);
if (day == 2 || day == 3 || day == 4 || day == 5
|| day == 6) {
alarmManager.setRepeating(AlarmManager.RTC_WAKEUP,
calSet.getTimeInMillis(), 1 * 60 * 60 * 1000,
pendingIntent);
}
Have a Idea.
© Stack Overflow or respective owner