As per our company requirement we are preventing BB user using WiFi within the office for that i have to enable and disable blackberry WiFi over incoming sms. I am able to disable by this code if it is on.
if ((wafs & RadioInfo.WAF_WLAN) != 0) {
Radio.deactivateWAFs(RadioInfo.WAF_WLAN);
}
But my question is how to know when the user try to enable WiFi. so that i can put restriction.
I had tried WLANConnectionListener interfae.But did not able to do this.If possible give me some sample code.
I found a solution to my question in android this way .But In blackberry is there a way..?