I have totalTime = 1 hr and and intervalTime = 5min, both are in millisecond,
I want to repeat my GPSSetting services every interval and after completion of totaltime this repeating shoud be stop.
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);
So how to i can stop this repeating alarm ?
Regards, Girish