title: Repeating Alarm Notification (Android)
body: <p>Will this work?</p>
  
  <pre><code>  public void setRepeatingAlarm() {
  
      ArrayList&lt;Integer&gt; AlarmDays = datasource.getDays();
      final int _id = (int) System.currentTimeMillis();
  
      Log.d("AlarmManageDebt", String.valueOf(AlarmDays));
  
      for (int i : AlarmDays) {
  
          Calendar cal = Calendar.getInstance();
          if (cal.get(Calendar.SECOND) &gt;= 30)
              cal.add(Calendar.MINUTE, 1);
          cal.set(Calendar.SECOND, Integer.valueOf(i));
  
          Intent intent = new Intent(this, TimeAlarm.class);
          PendingIntent pendingIntent = PendingIntent.getBroadcast(this, _id,
                  intent, PendingIntent.FLAG_CANCEL_CURRENT);
          am.setRepeating(AlarmManager.RTC_WAKEUP, cal.getTimeInMillis(),
                  60 * 1000, pendingIntent);
      }
  }
  </code></pre>
  
  <p>I have a unique ID for the pendingIntent, and the only thing different in the alarm is the "i" variable that gives it new seconds depending on the database row (eventually, this will be a daily notification and "i" will represent a day, not a second. But this is for testing purposes.  I have confirmed the correct data is being passed in "i".  I just am not sure if this will create three different alarms?</p>
  
  <p>So am I creating multiple alarms here?  or is each loop effectively replacing the one just created?</p>