08-27-2012 03:26 AM
Hi,
In My application a functionality is like this that a listener to be implemented whenever device gets connected to mobile network or switched to wifi network or vice-versa . Has anyone tried that or have an idea that how it can be implemneted using BB 10 NDK ?
Thanks,
Amardeep
08-28-2012 01:33 PM
Hi,
Have you looked at the API? This may point you in the right direction:
https://developer.blackberry.com/cascades/referenc
Martin
02-23-2013 12:51 AM
What's considered best practice when using this? I can tell that if wifi is on, "up" returns true on the interface, and if it's actually connected then "connected" returns true as well... but is it acceptable to count on "tiw_sta0" to be the wifi device? When connected, tiw_sta0 is the default interface, so simply seeing if that's the case might be sufficient.
Anything to be aware of, or should I be ok with just checking the default interface?
Thanks.