Code example for RadioGroup

Methods: setOnCheckedChangeListener

0
 
		public void onCheckedChanged(RadioGroup group, int checkedId) { 
			editTextBicks.setEnabled(true); 
			buttonBicks.setEnabled(true); 
			 
			radioGroupCategory.setOnCheckedChangeListener(null); 
		} 
	}; 
	 
	private OnClickListener buttonBicksOnClickListener = new OnClickListener() {
		 
		public void onClick(View v) { 
			 
			if(currentLocation == null){ 
				Toast.makeText(getBaseContext(), "GPS location not available" ,Toast.LENGTH_SHORT).show(); 
			} 
			else { 
				new UploadSbicktMessage().execute(); 
			} 
		} 
	};