I've created a switch that turns bluetooth on and off. But when he calls, he asks the user if he really wants to activate bluetooth. If the user clicks no, the switch remains active and the crusha app.
Does anyone know how to make the Switch back home if the user clicks no?
I'm using On checked, as below:
comum.setOnCheckedChangeListener(new OnCheckedChangeListener() {
public void onCheckedChanged(CompoundButton buttonView, boolean isChecked) {
if (isChecked) {
// Ligado
} else {
// Desligado
}
}
});