My application uses the proximity sensor to turn wifi on or off based on its current state. There are radiobuttons to select what the app should do when the sensor is triggered. There are options of turning the screen on , toggling wifi and bluetooth.
The problem is that when I switch from toggling wifi , to turning on the screen and then back to toggling wifi , wifi doesn't turn off , it keeps on turning on again when the sensor is triggered. This problem does not occur in android 4.2.2 but it occurs in versions 2.3.5 and 4.0.4.
If I don't switch between the options and keep the radiobutton on the wifi label checked , the problem doesn't occur.
I am not sure how I can be helped on this issue but it is bothering me.
The problem is that when I switch from toggling wifi , to turning on the screen and then back to toggling wifi , wifi doesn't turn off , it keeps on turning on again when the sensor is triggered. This problem does not occur in android 4.2.2 but it occurs in versions 2.3.5 and 4.0.4.
If I don't switch between the options and keep the radiobutton on the wifi label checked , the problem doesn't occur.
I am not sure how I can be helped on this issue but it is bothering me.