title: How to Stop Repeating Alarm Services in Android?
body: <p>I have totalTime = 1 hr and and intervalTime = 5min, both are in millisecond,</p>
  
  <p>I want to repeat my  GPSSetting services every interval and after completion of totaltime  this repeating shoud be stop.</p>
  
  <pre><code>AlarmManager am = (AlarmManager) getSystemService(ALARM_SERVICE);
                  Intent intent1 = new Intent(C2DMReceiver.this, GPSSetting.class);
                  PendingIntent pendingIntent = PendingIntent.getService(
                          C2DMReceiver.this, 0, intent1, 0);
                  am.setRepeating(AlarmManager.RTC, System.currentTimeMillis(), intervalTime,
                          pendingIntent);
  </code></pre>
  
  <p>So how to i can stop this repeating alarm ?</p>
  
  <p>Regards,
  Girish</p>