11-04-2009 09:14 AM
We are using the following API to check for WiFi availablity:
WLANInfo.getWLANState() == WLANInfo.WLAN_STATE_CONNECTED
However, this does not necessarily tell you whether or not you can actively access the Internet via WiFi. The classic example is Starbucks where you can connect to the hotspot all you want, but in order to access the Internet you have to use the browser to log in with credentials.I also thought this might help:
But it appears to be equal to the first result. How do you all normally handle this scenario? Thanks.
11-04-2009 09:43 AM
I wonder if the "Starbucks" case is now handled by the new Hotspot API where the BlackBerry OS detects that it's connected to WiFi but the hotspot requires web-based authentication for full Internet access.
As to Internet connectivity, the most reliable method is to establish a connection over WiFi an check whether it works. Alternatives, which might not always work, include checking BIS-B/MDS connectivity over WiFi, or checking th WiFi WPTCP service book.