10-07-2008 04:28 AM
I try to establish WiFi connection on a BlackBerry Bold (OS 18.104.22.168) but it does not work.
HttpConnection connection = (HttpConnection) Connector.open(url + ";interface=wifi", Connector.READ);
This code throws an IOException.
I try ";deviceside=true;interface=wifi", but it throws the same exception.
There's no SIM in the device and I can reach the url with the browser.
On a 8120, It works the first times but after a momentit throws a DNSException. When it happens, it's impossible to reach the url with the browser.
Have you got any idea ?
Thanks a lot.
10-08-2008 07:20 AM
I have just successfully used a Bold with no SIM to connect using WiFi.
The application is compiled using JDE 4.1, the http connection code looks like:
c = (HttpConnection)Connector.open(_connectionURL);
I note according to the Javadoc, that IOException will be thrown by this if you there is a Firewall problem. I suggest you reset your Firewall and try again.
Options--> Security-->Firewall, then use the menu to "Reset Settings".
Hope this helps.
11-26-2008 05:48 AM
I have a new Wi-FI connection problem.
I try to connect using that url : http://www.google.com;interface=wifi
I get that error : java.io.IOException
I do my test an a Bold with the mobile connection off and Wi-Fi on and well configured.
I can browse Internet with the Blackberry Browser.
When I go to Options > Advanced Options > Browser. In "default browser configuration, I have only 1 option : "Hotspot Browser". I don't know if it's usefull for my problem.
Thanks a lot.
11-26-2008 06:45 AM
What is the text associated with the IOException? Have you reset the Firewall as per presious post? Is your applciatin signed? What level JDE did you use to develop the app? Is the request being issued from a background thread
11-26-2008 08:52 AM
The text is : java.io.IOException: Connection not writeable
I found the real problem.
I do :
HttpConnection connection = (HttpConnection) Connector.open(url, Connector.READ ); int res = connection.getResponseCode();
It doesn't work. But if I do :
HttpConnection connection = (HttpConnection) Connector.open(url); int res = connection.getResponseCode();
For me, the default mode was Connector.READ. But it seems there's a difference between Connector.open(url) and Connector.open(url,Connector.READ).
11-27-2008 04:02 AM