Code example for CheckBox

Methods: setOnClickListener

0
		mSensorManager.unregisterListener(this);
		super.onStop(); 
	} 
 
	private void listeners() { 
		checkCity.setOnClickListener(new View.OnClickListener() {
			public void onClick(View v) {
				checkSelection(0); 
 
			} 
		}); 
		checkCountry.setOnClickListener(new View.OnClickListener() {
			public void onClick(View v) {
				checkSelection(1); 
			} 
		}); 
	} 
 
	public void checkSelection(int i) {
		switch (i) {
		case 0: