I think you want to set the alarm for 26th June and not 26th July. If so then change cal.set(Calendar.MONTH,6);
to cal.set(Calendar.MONTH,5);
because the months are zero-based. if you intend the alarm to fire on 26th july then it is expected that the alarm will fire when the date-time is 26th July 2011, 17:30
More Related Contents:
- How to check if AlarmManager already has an alarm set?
- android prevent immediate trigger of alarm service if alarm time has passed for the day
- Using Alarmmanager to start a service at specific time
- AlarmManager fires alarms at wrong time
- Calling startActivity() from outside of an Activity?
- does Alarm Manager persist even after reboot?
- How to make Alarm Manager work when Android 6.0 in Doze mode?
- Android AlarmManager – RTC_WAKEUP vs ELAPSED_REALTIME_WAKEUP
- Can’t stop the ringing alarm from another activity
- How to read “adb shell dumpsys alarm” output
- Android cannot pass intent extras though AlarmManager
- AlarmManager not working in several devices
- android AlarmManager not waking phone up
- android: running a background task using AlarmManager
- How to show daily offline notifications in Android 10?
- Is it possible to create multiple PendingIntents with the same requestCode and different extras?
- setExactAndAllowWhileIdle – is not exact as of developer reference
- Android AlarmManager setExact() is not exact
- LocalNotification with AlarmManager and BroadcastReceiver not firing up in Android O (oreo)
- How to reset alarm if app is force closed in android
- Android alarm is cancelled after closing the application
- How does android compare pending intents
- How to save scheduled alarm after app was killed by Android or task killer?
- Start Android Service after every 5 minutes
- Android Oreo killing background services and clears pending alarms, scheduled jobs after entering doze mode
- SharedPreferences in BroadcastReceiver seems to not update?
- Android Alarm Manager with broadcast receiver registered in code rather than manifest
- AlarmManager setExact with WakefulBroadcastReceiver sometimes not exact
- Android AlarmManager problem with setting & resetting an alarm
- Need code example on how to run an Android service forever in the background even when device sleeping, like Whatsapp?