Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

BlackBerry: Turning on Wifi in code

Is there a way to enable Wifi from code in BlackBerry OS?

Thx

-- EDIT --

I just wanted to add the code snippet for checking if WiFi is already enabled:

if ( (RadioInfo.getActiveWAFs() & RadioInfo.WAF_WLAN) == RadioInfo.WAF_WLAN ) { 
    // do stuff 
}
like image 579
cschuff Avatar asked Nov 14 '11 16:11

cschuff


People also ask

How do you turn on Wi-Fi on a BlackBerry?

Wi-Fi: From the Home screen, tap the “Settings” (Gear) icon that appears in the top right corner and tap “Wi-Fi”. Toggle Wi-Fi “On” or “Off”.

Why is my BlackBerry not connecting to Wi-Fi?

Verify that you're in a Wi-Fi coverage area. If you're connecting to a home network, check and see if other wireless devices are able to connect. If other devices can't connect, you might need to reset your router (if you do not run the Wi-Fi network, contact the owner before resetting the wireless router).

How do I connect to a coded Wi-Fi?

You can connect to a WiFi network by scanning the QR Code from any smartphone or tablet. With the help of a QR Code generator for WiFi, you can create a QR Code that connects to the network automatically when scanned.


1 Answers

You can use the Radio.activateWAFs() method to do this, if you pass WAF_WLAN as a parameter. You can use it to enable or disable each wireless connection on the device.

like image 95
Polynomial Avatar answered Oct 06 '22 00:10

Polynomial