I'm using AlarmClock.ACTION_SET_ALARM intent as defined here <https://developer.android.com/guide/components/intents-common.html#CreateAlarm>for setting alarms through my android app.
This is my code: public void createAlarm(String message, int hour, int minutes) { Intent intent = new Intent(AlarmClock.ACTION_SET_ALARM) .putExtra(AlarmClock.EXTRA_MESSAGE, message) .putExtra(AlarmClock.EXTRA_HOUR, hour) .putExtra(AlarmClock.EXTRA_MINUTES, minutes); if (intent.resolveActivity(getPackageManager()) != null) { startActivity(intent); } } Is there any way of cancelling these alarms programmatically when user wants through my app? Please let me know. Thanks! -- You received this message because you are subscribed to the Google Groups "Android Developers" group. To unsubscribe from this group and stop receiving emails from it, send an email to android-developers+unsubscr...@googlegroups.com. To post to this group, send email to android-developers@googlegroups.com. Visit this group at https://groups.google.com/group/android-developers. To view this discussion on the web visit https://groups.google.com/d/msgid/android-developers/01a13999-1ac7-4da1-892b-67e2b872ca95%40googlegroups.com. For more options, visit https://groups.google.com/d/optout.