Code example for AlarmManager

Methods: cancel

0
		} 
	} 
 
	private void unsetAlarm() { 
		if (this.alarmScheduled) {
			this.alarmManager.cancel(this.alarmIntent);
			this.alarmScheduled = false;
		} 
	} 
 
	private void resetAlarm() { 
		unsetAlarm(); 
		setAlarm(); 
	} 
 
 
	@Override 
	public void onSharedPreferenceChanged(SharedPreferences sharedPreferences,
			String key) {
		if (key.equals("doAutoSync")) {
Contextual code suggestions in your IDE  Get Codota for Java