Welcome to the official BlackBerry Support Community Forums.

This is your resource to discuss support topics with your peers, and learn from each other.

inside custom component

Native Development

Posts: 95
Registered: ‎10-19-2010
My Device: Blackberry 8110
My Carrier: Generic
Accepted Solution

Can WiFi be enabled/disabled programmatically in BB10?



I would like to know whether there's an API that allows developers to enable/disable WiFi programmatically.


Thank you very much


Posts: 116
Registered: ‎10-31-2012
My Device: BB10 Dev Alpha B
My Carrier: -

Re: Can WiFi be enabled/disabled programmatically in BB10?

Not sure, but you certainly  won't be able to override user settings. If the user has set WiFi  to off, then its off [otherwise there would be a security hole]. You are also unlikely to be able to turn it off as you could interfere with other apps [again a security hole].


In terms of what you can do, look at the QNetworkConfigurationManager class.