I have a set of checkbox
but only wanted one selected and, if they selected another, the one that was selected was deselected.
I've tried this, but it does not work:
if (chkfemenino.isChecked()) {
params.add(new BasicNameValuePair("genero", generofem));
chkmasculino.setChecked(false);
}
if (chkmasculino.isChecked()) {
params.add(new BasicNameValuePair("genero", generomasc));
chkfemenino.setChecked(false);
}