Code example for AlarmManager: Creating a periodic task

Methods: setRepeating

0
 
	public void updateScheduler(long interval) {
		Logger.log(CLASS_TAG, "updating scheduler");
		if (mgr != null && pendingIntent != null) {
			Logger.log(CLASS_TAG, "Update scheduler to " + interval);
			mgr.setRepeating(AlarmManager.ELAPSED_REALTIME_WAKEUP,
					SystemClock.elapsedRealtime() + 60000, interval,
					pendingIntent);
		} 
	} 
}