title: Send notification at exact time and at every 24 hours
body: <p>This is my code. I think this method is right but I am not able to show the notification at exact time. There is always a delay of a few minutes.</p>
  
  <pre><code>public void setSimpleAlarm() {
      Calendar c = Calendar.getInstance();
      c.set(Calendar.HOUR_OF_DAY, 10);
      c.set(Calendar.MINUTE, 19);
      c.set(Calendar.SECOND, 40);
  
      AlarmManager alarmManager = (AlarmManager) getActivity().getSystemService(getActivity().ALARM_SERVICE);
      Intent intentAlarm = new Intent(getActivity(), AlarmReceiver.class);
      PendingIntent pendingIntent = PendingIntent.getBroadcast(getActivity(), 3, intentAlarm, PendingIntent.FLAG_UPDATE_CURRENT);
      alarmManager.setInexactRepeating(AlarmManager.RTC_WAKEUP, c.getTimeInMillis(), AlarmManager.INTERVAL_DAY, pendingIntent);
  }
  </code></pre>