I have a mute switch in my application.
Now I want to check if the switch is checked or unchecked.
How could I do this?
You would use setOnChangeListener
to your switch
Eg : switch.setOnChangeListener()
etc.
Then inside this, you can check by using isChecked.
eg.
if(isChecked) {
//do something ect...
Hope this helps!