title: How to set more than one alarms at a time in android?
body: <p>I am making a small app where I have to set alarm from array but only one alarm is set and working at a time which is at last position of array why it is behaving like this following is my code</p>
  
  <pre><code>AlarmManager[] alarmManager=new AlarmManager[24];
                  for(f=0;f&lt;arr2.length;f++)
                  {
                      Intent intent = new Intent(AlarmR.this, Riciving.class);
                      pi=PendingIntent.getBroadcast(AlarmR.this, 0,intent, 0);
  
                      alarmManager[f] = (AlarmManager) getSystemService(ALARM_SERVICE);
                      alarmManager[f].set(AlarmManager.RTC_WAKEUP,arr2[f] ,pi);
  
                      } 
  </code></pre>
  
  <p>Thanks in Advance</p>