RadioButton checked_rb = group.findViewById(checkedId);
Toast.makeText(context,checked_rb.getText(),Toast.LENGTH_SHORT).show();
if (!checked_rb.isChecked())
{
checked_rb.setChecked(true);
}
if (lastChecked != null) {
if (lastChecked.isChecked())
{
lastChecked.setChecked(false);
}
}
//store the clicked radiobutton
lastChecked = checked_rb;
}
});