title: AlarmManager not repeating correctly
body: <p>I try to have a notification repeated daily (For debugging I set it to every 10s). However, it is firing the notification only the first time, then nothing happens.</p>
  
  <p>Here is the code where the alarm is set:</p>
  
  <pre><code>Intent myIntent = new Intent(ctx , NotifyService.class);
  AlarmManager alarmManager =(AlarmManager)ctx.getSystemService(ALARM_SERVICE);
  PendingIntent pendingIntent = PendingIntent.getService(ctx, 0, myIntent, PendingIntent.FLAG_UPDATE_CURRENT);
  
  Calendar calendar = Calendar.getInstance();
  alarmManager.setRepeating(AlarmManager.RTC_WAKEUP,calendar.getTimeInMillis(), 1000 * 10, pendingIntent); 
  </code></pre>
  
  <p>and here is the service:</p>
  
  <pre><code>public class NotifyService extends Service {
     public NotifyService() {
  
     }
  
     @Override
     public void onCreate(){
         //Create and Emit the notification.
     }
  </code></pre>
  
  <p>I have tried different flags in <code>getService(ctx, int, Intent, flags)</code>, to use <code>setInexactRepeating</code> and to set a new alarm after every call to the <code>NotifyService</code>. </p>