title: Check if AlarmManager task is in progress
body: <p>I am running periodic background task using AlarmManager:</p>
  
  <pre><code>AlarmManager alarmManager = (AlarmManager) context.getSystemService(Context.ALARM_SERVICE);
  Intent intent = new Intent(context, AlarmReceiver.class);
  PendingIntent pendingIntent = PendingIntent.getBroadcast(context, 0, intent, PendingIntent.FLAG_UPDATE_CURRENT);
  alarmManager.setRepeating(AlarmManager.RTC_WAKEUP, System.currentTimeMillis(), 10 * 60 * 1000, pendingIntent);
  </code></pre>
  
  <p>I put a flag <code>PendingIntent.FLAG_UPDATE_CURRENT</code>, but I afraid it re-writes my schedule if I run this code again. Questions: </p>
  
  <ul>
  <li>Will it reset the time and I'll have to wait for 10 mins to receive an event?</li>
  <li>Is there a way to check if my alarm task schedule is set?</li>
  </ul>