Is there a way to enable Wifi from code in BlackBerry OS?
thanks
- EDIT -
I just wanted to add a code snippet to check if WiFi is turned on:
if ( (RadioInfo.getActiveWAFs() & RadioInfo.WAF_WLAN) == RadioInfo.WAF_WLAN ) { // do stuff }
You can use the Radio.activateWAFs() method if you pass WAF_WLAN as a parameter. You can use it to enable or disable each wireless connection on the device.
Radio.activateWAFs()
WAF_WLAN
Radio.deactivateWAFs(RadioInfo.WAF_WLAN);
Radio.activateWAFs(RadioInfo.WAF_WLAN);
Source: https://habr.com/ru/post/901450/More articles:Get custom field value in Drupal 7 template? - user-interfaceDoes Coldfusion support dynamic arguments? - pythonWhat is in the dump file? - visual-studioLuracast Restler callback setting for cross-domain AJAX - restWikipedia API - access to a JSON object - jsonHow to access oracle data using Linq via ADO.net? - c #Javascript if (document.images) - javascriptUnit tests for jQuery core libraries - jqueryHow can I insert HTML code inside javascript variable? - javascriptsql server 2000 convert datetime to get hhmm - sqlAll Articles