Welcome to the official BlackBerry Support Community Forums.

This is your resource to discuss support topics with your peers, and learn from each other.

inside custom component

Java Development

New Developer
Posts: 3
Registered: ‎08-13-2008
My Device: Not Specified

Developing programs that can use wi-fi without specifying ;interface=wifi on url.

I have read in this forum and in the knowledge base that a blackberry program will automatically use a wi-fi network if the device is connected to it.  And no special changes are needed to the program to get this behavior.


I have a program that uses the internet, but I can not get it to use a connected wi-fi network unless ";interface=wifi" is appended to the url.  We are using version 4.1.0 as the target build for all devices so I don't really want to try and detect if wi-fi is available.  The device I am testing with is a Bold and I have tried compiling the program using versions 4.1,4.2 and 4.6 and that doesn't seem to effect the behavior. The Bold uses BIS, and if I turn off the radio, but have a wi-fi connection, my program can not access the network unless the interface=wifi is used.


So am I wrong in assuming that wi-fi usage should be transparent to a program using the internet? I am getting a connection like this:  conn = (HttpConnection) Connector.open(url, Connector.READ_WRITE, true);


Any thoughts and/or suggestions would be appreciated.



Posts: 19,636
Registered: ‎07-14-2008
My Device: Not Specified

Re: Developing programs that can use wi-fi without specifying ;interface=wifi on url.

I suggest you review the Network Transports video:



This explains under what circumstances the device will route data over WiFi rather than wireless.  The key seems to be that it must first establish a wireless connection to whatever home base is, verify that it is getting to that using WiFi, then it will use WiFi automatically.


Regarding other WiFi questions, there are a number of useful WiFi Threads on this forum, I encourage you to review.  Some ones I think are useful are: