set android alarm at specific time
<p>i set the alarm at specific time but every time i open the application it will turn on 
this is the code i used :</p>

<pre><code>  AlarmManager alarmManager = (AlarmManager) getSystemService(Context.ALARM_SERVICE);

    Intent intent = new Intent(this, AlarmReceiver.class);

    PendingIntent pendingIntent = PendingIntent.getBroadcast(this,0010000,intent,0);


Calendar time = Calendar.getInstance();
time.set(Calendar.HOUR, 5);
time.set(Calendar.MINUTE, 59);
time.set(Calendar.SECOND, 0);

      alarmManager.set(AlarmManager.RTC,time.getTimeInMillis(),pendingIntent);
</code></pre>
