title: Android Set multiple repeat alarms
body: <p>I want to set 3 different alarms repeat everyday.(like 9:00am,1:00pm,6:00pm)
  And I have created buttons for them.
  I can set the alarm's time when I click the button.
  The problem is how can I change my code to achieve above mentioned.</p>
  
  <pre><code>private void setNotification() {
      Intent myIntent = new Intent(getActivity(), MyReceiver.class);
      PendingIntent pendingIntent = PendingIntent.getBroadcast(getActivity(), 0, myIntent, 0);
      AlarmManager alarmManager = (AlarmManager)getActivity().getSystemService(Context.ALARM_SERVICE);
      Calendar calendar = Calendar.getInstance();
      calendar.set(Calendar.HOUR_OF_DAY, set_hour);
      calendar.set(Calendar.MINUTE, set_minute);
      calendar.set(Calendar.SECOND,00);
      long startUpTime = calendar.getTimeInMillis();
      System.out.println(startUpTime + "time" + System.currentTimeMillis());
          if (System.currentTimeMillis() &gt; startUpTime) {
              startUpTime = startUpTime + AlarmManager.INTERVAL_DAY;
          }
      alarmManager.setRepeating(AlarmManager.RTC_WAKEUP, startUpTime, AlarmManager.INTERVAL_DAY , pendingIntent);
  }
  </code></pre>