When trying to set an AlarmManager event, previous one is resetting with new time and the new one is not getting triggerred
<p>Here is my code which I tried, Steps.</p>

<p>1) creating an AlarmManager event by calling AM.Set( ) method suppose with time X.</p>

<p>2) creating another AlarmManager event suppose with time Y.</p>

<p>Result = first event is triggered at time Y in place of time X. and second is not triggered at all.</p>

<pre><code>AlarmManager AM =(AlarmManager)getSystemService(Context.ALARM_SERVICE);
Intent intent = new Intent();
intent.setAction(Constants.ALARM_ACTION);
intent.putExtra(Constants.EXTRA_DATA1, data[0]);
intent.putExtra(Constants.EXTRA_DATA2, data[1]);
long selectedTime = Long.parseLong(data[2]);
PendingIntent pi = PendingIntent.getBroadcast(mContext, 0, intent,0);
AM.set(AlarmManager.RTC,selectedTime, pi);
</code></pre>

<p>Am I doing something wrong? I need to trigger all the events .</p>
