Welcome!

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

Reply
Developer
KeniF
Posts: 131
Registered: ‎08-13-2008

Locating Wifi profiles and connecting

[ Edited ]

My application needs to do the following:

Find wifi access points stored in the device and go through each one to see which is available. If available, connect.

I've been searching the forums and I've bits of information but I still don't see the whole picture.

 

1) How do I find wifi profiles on the device? By using Servicebook? Using JDE 4.5 8820 simulator

Solved. By iterating through Servicebooks.

 


2) What does it mean when 5 is returned?Total number of active WAFs?

 

RadioInfo.getActiveWAFs()

 

 

3) How would I connect to a desired access point?

 

(StreamConnection)Connector.open("socket://...")

 

 

Thanks in advance.

Message Edited by KeniF on 08-13-2008 05:04 PM
Please use plain text.
Administrator
MSohm
Posts: 14,065
Registered: ‎07-09-2008
My Carrier: Bell

Re: Locating Wifi profiles and connecting

It is not possible to programmatically scan for and connect to Wi-Fi networks on a BlackBerry.  The user must first configure and connect to the network before an application can connect over it.
Mark Sohm
BlackBerry Development Advisor

Please refrain from posting new questions in solved threads.
Problem solved? Click the Accept As Solution button.
Found a bug? Report it using Issue Tracker
Please use plain text.
Developer
KeniF
Posts: 131
Registered: ‎08-13-2008

Re: Locating Wifi profiles and connecting

Thanks for the reply. Now my question is how can I define access points on my simulator so I can do tests on it?

Please use plain text.
Administrator
MSohm
Posts: 14,065
Registered: ‎07-09-2008
My Carrier: Bell

Re: Locating Wifi profiles and connecting

This is not supported by the BlackBerry Simulator.  You will need an actual BlackBerry to test Wi-Fi.
Mark Sohm
BlackBerry Development Advisor

Please refrain from posting new questions in solved threads.
Problem solved? Click the Accept As Solution button.
Found a bug? Report it using Issue Tracker
Please use plain text.
Developer
eaoliver
Posts: 205
Registered: ‎07-14-2008

Re: Locating Wifi profiles and connecting

The functionality is clearly available at the Java layer, so it's a conscious decisions on RIM's part not to expose these APIs to developers.

 

Is there a good reason for this?

 

Earl 

Earl Oliver
Please use plain text.