Code example for CheckBoxPreference

Methods: setPersistent

0
	} 
 
	private void setListeners() { 
		cancelButton.setOnClickListener(new View.OnClickListener() {
			public void onClick(View view) {
				mapView.setPersistent(false);
				zoomSpinner.setPersistent(false);
				Preferences.this.setResult(RESULT_CANCELED);
				finish();
			} 
		}); 
		okButton.setOnClickListener(new View.OnClickListener() {
			public void onClick(View view) {
				savePreferences(); 
				Preferences.this.setResult(RESULT_OK);
				finish();
			} 
		}); 
	} 
 
	private void savePreferences() {