Code example for RadioGroup

Methods: indexOfChildgetCheckedRadioButtonId, findViewById

0
	} 
 
	@Override 
	public void saveProfileDialogAccept() { 
 
		View radioButton = mType.findViewById(mType.getCheckedRadioButtonId());
 
		String type = "";
		switch (mType.indexOfChild(radioButton)) {
		case 0: 
			type = "Mini";
			break; 
		case 1: 
			type = "1K";
			break; 
		case 2: 
			type = "2K";
			break; 
		case 3: 
			type = "4K";
			break;