Android AlarmManager problem
<p>I'm a new developer android application.I've problem about AlarmManager,I using
AlarmManager to set alert for my application.</p>

<p>I was set time to alert 2 time but my application was alert a one time</p>

<p>example,I'll set alarm at 15.30 and 16.30,My application will alert at 16.30 but not alert at 15.30.I've no idea to fix this problem,I hope someone please tell me to fix this problem</p>

<p>This my code</p>

<pre><code>confirmButton.setOnClickListener(new OnClickListener() {
        public void onClick(View v) { 
        alarm();
        finish();  
       }
 });
</code></pre>

<p>This alarm method,I'll get date and time from button and use it to set calendar</p>

<pre><code>private void alarm(){
     final String day = mBtnselectDate.getText().toString();
 final String time = mBtnselectTime.getText().toString();
 y = day.substring(0, 4);
 m = day.substring(5, 7);
 d = day.substring(8);
 ALARM_HOUR = time.substring(0, 2); 
 ALARM_MINUTE = time.substring(3); 

 year = Integer.parseInt(y);
 month = Integer.parseInt(m);
 mon = month - 1;
 date = Integer.parseInt(d);

 Hour = Integer.parseInt(ALARM_HOUR);
 Min = Integer.parseInt(ALARM_MINUTE);


Intent AlarmIntent = new Intent(Organaizer2.this, AlarmReceiver2.class);
    AlarmManager AlmMgr = (AlarmManager)getSystemService(ALARM_SERVICE);            
    PendingIntent Sender = PendingIntent.getBroadcast(Organaizer2.this, 0, AlarmIntent, 0);     

    Calendar alarmCalendar = Calendar.getInstance();

    alarmCalendar.set(Calendar.HOUR_OF_DAY, Hour);
    alarmCalendar.set(Calendar.MINUTE, Min);
    alarmCalendar.set(Calendar.YEAR, year);
    alarmCalendar.set(Calendar.MONTH, mon);
    alarmCalendar.set(Calendar.DATE, date);

    AlmMgr.set(AlarmManager.RTC_WAKEUP, alarmCalendar.getTimeInMillis(), Sender);   

}
</code></pre>

<p>if you see problem please tell me,Thank you,Arles</p>
