11-30-2013 09:21 PM
Would anyone happen to know if there is a native API to interrogate the setting state of each setting under Settings>Network Connections ? So if I wanted to know if the Mobile Hotspot is 'connected' or 'not connected' I could ask it's state and then toggle it based on the state. I've looked through the Device and Communication docs and see some for Cellular state and some on WIFI, but don't see anything for the others like Internet Tethering or Mobile Hotspot, etc.
I'm using BB10 10.1 on Blackberry Z10.
12-03-2013 10:29 AM
If only to check if internet is available is your concern. Check these
I hope it helps.
12-04-2013 03:25 PM
QtNetwork is where it's at. The QNetworkConfigurationManager class has an isOnline() method:
Start by watching this video about networking in Cascades on BlackBerry 10:
You can check to see which transport the user is on by using QNetworkConnection::BearerType enum. A value of 2 means WiFi: