title: AlarmManager alarm start when system time is changed by user?
body: <p>i am using <strong>AlarmManager</strong> class for setting Alarms it is working fine.  </p>
  
  <p>But if i set alarm like 9pm and current time  is 8pm and i changed  the system time to 10pm<br>
  then alarm 9pm alarm start automatically. so to solve this issue </p>
  
  <p><strong>i have searched so much but did not found any good answer</strong>
  Please help</p>
  
  <p>here is my code for alarm setting</p>
  
  <pre><code>    final int id = (int) System.currentTimeMillis();
      Intent intent = new Intent(this, AlarmReceiver.class);
      intent.putExtra("requestCode", id);
  
      PendingIntent pendingIntent = PendingIntent.getBroadcast(this, id, intent, PendingIntent.FLAG_UPDATE_CURRENT);
      AlarmManager alarmManager = (AlarmManager)getSystemService(ALARM_SERVICE);
  
      alarmManager.setRepeating(AlarmManager.RTC_WAKEUP, calendar.getTimeInMillis(), 2*60*1000, pendingIntent);
  </code></pre>