09-24-2008 05:55 AM
I have read that if there is an active wifi connection enabled on the device that the OS will automatically send data over wifi when using http in an application and you don't need to append ";deviceside=true;interface=wifi" to the url.
Is that the case?
If so, is there then a way to detect that the data is being sent using wifi? My application needs to send the connection type along with the request to the server.
09-24-2008 02:17 PM
Assuming the connection can be made over Wi-Fi this is true. There is no way to query the route your connection has been made over. You can control it through the user if the deviceside and interface parameters.
Your application can listen for when the BlackBerry has connected or disconnected to a Wi-Fi network by using the WLANConnectionListener.
09-25-2008 12:17 PM
09-26-2008 07:07 AM
So it is automatic. What happens if the user either takes out the SIM card or turns the Mobile Network off? Will it still connect over wi-fi? I have tried this and appears that it won't connect using wi-fi. Connector.open throws an IOException. This raises an issue with the user. If you say the application will connect automatically using available wi-fi, the user might be inclined to test this by turning off mobile network at which point the application will fail to connect and will give the user the impression that the application actually does not use wi-fi at all.
09-26-2008 12:00 PM