I am testing my application on different models, and I realized that the on / off button of the toggle button does not work. This is a list of devices:
Samsung YS5360 Samsung Galaxy Note Samsung S Plus HTC Sensation XE HTC Wildfire S Motorola RAZR
LG Optimus Black Sony Ericsson Xperia neo V
I'm not sure what I am doing wrong, as I have followed all the specifications of Android. These events work on other devices. Can I help someone?
[RE-EDIT]
This is how I implement the listener:
@Override public void onCheckedChanged(CompoundButton arg0, boolean change) { if(change){ if(text.containsKey("on")){ // do something } }else{ if(text.containsKey("off")){ // do something } } if(text.containsKey("clicked")){ // do something } // } } };
I check on and off status, but it doesn't seem to work on other devices.
source share