 AlarmManager alarmManager = (AlarmManager)  getSystemService(Context.ALARM_SERVICE);         Intent alertIntent = new Intent(this, AlertReceiver.class);         alertIntent.putExtra("title", "event0");         alarmManager.set(AlarmManager.RTC_WAKEUP, cal.getTimeInMillis(), PendingIntent.getBroadcast(this, 0, alertIntent, PendingIntent.FLAG_UPDATE_CURRENT));          Intent alertIntent0 = new Intent(this, AlertReceiver.class);         alertIntent0.putExtra("title", "event0");         alarmManager.set(AlarmManager.RTC_WAKEUP, cal0.getTimeInMillis(), PendingIntent.getBroadcast(this, 0, alertIntent0, PendingIntent.FLAG_UPDATE_CURRENT));          Intent alertIntent0 = new Intent(this, AlertReceiver.class);         alertIntent0.putExtra("title", "event0");         alarmManager.set(AlarmManager.RTC_WAKEUP, cal0.getTimeInMillis(), PendingIntent.getBroadcast(this, 0, alertIntent0, PendingIntent.FLAG_UPDATE_CURRENT));          Intent alertIntent0 = new Intent(this, AlertReceiver.class);         alertIntent0.putExtra("title", "event0");         alarmManager.set(AlarmManager.RTC_WAKEUP, cal0.getTimeInMillis(), PendingIntent.getBroadcast(this, 0, alertIntent0, PendingIntent.FLAG_UPDATE_CURRENT));  