Code example for RadioButton

Methods: setOnCheckedChangeListener

0
	public boolean createOptionsMenu(Menu menu) {
		return false; 
	} 
 
	protected void addConfigurationListener(RadioButton radioButton) {
		radioButton.setOnCheckedChangeListener(new OnCheckedChangeListener() {
			public void onCheckedChanged(CompoundButton buttonView,
					boolean isChecked) {
				mComputeConfiguration = true;
			} 
		}); 
	} 
 
	protected void addConfigurationListener(EditText editText) {
		editText.addTextChangedListener(new TextWatcher() {
			public void afterTextChanged(Editable s) {
			} 
 
			public void beforeTextChanged(CharSequence s, int start, int count,
					int after) {
			}