Hi, I want to disable a specific alarm set from my program, but it would disable all alarms when I disable one of them every time.
My code is as follows, Intent AlarmIntent = new Intent(context, AlarmRingtoneReceiver.class); AlarmIntent.putExtra("taskId", taskId); AlarmIntent.putExtra("alarmId", alarmId); AlarmIntent.putExtra("summary", summary); AlarmIntent.putExtra("SelectedRingtoneId", ringtoneId); PendingIntent sender = PendingIntent.getBroadcast(context, 0, AlarmIntent, PendingIntent.FLAG_CANCEL_CURRENT); AlarmManager alarmManager = (AlarmManager) context.getSystemService (Context.ALARM_SERVICE); alarmManager.cancel(sender); Is there any problems in my code? --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Android Developers" group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers-unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -~----------~----~----~----~------~----~------~--~---