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


Thank you for visiting the BlackBerry Support Community Forums.

BlackBerry will be closing the BlackBerry Support Community Forums Device Forums on April 1st (Developers, see below)

BlackBerry remains committed to providing excellent customer support to our customers. We are delighted to direct you to the CrackBerry Forums, a well-established and thorough support channel, for continued BlackBerry support. Please visit http://forums.crackberry.com or http://crackberry.com/ask. You can also continue to visit BlackBerry Support or the BlackBerry Knowledge Base for official support options available for your BlackBerry Smartphone.

"When we launched CrackBerry.com 10 years ago, we set out to make it a fun and useful destination where BlackBerry Smartphone owners could share their excitement and learn to unleash the full potential of their BlackBerry. A decade later, the CrackBerry community is as active and passionate as ever and I know our knowledgeable members and volunteers will be excited to welcome and assist more BlackBerry owners with their questions."

- Kevin Michaluk, Founder, CrackBerry.com

Developers, for more information about the BlackBerry Developer Community please review Join the Conversation on the BlackBerry Developer Community Forums found on Inside BlackBerry.


Reply
Developer
Posts: 131
Registered: ‎08-13-2008
My Device: Not Specified

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
Highlighted
BlackBerry Development Advisor
Posts: 15,884
Registered: ‎07-09-2008
My Device: BlackBerry PRIV
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.
Developer
Posts: 131
Registered: ‎08-13-2008
My Device: Not Specified

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?

BlackBerry Development Advisor
Posts: 15,884
Registered: ‎07-09-2008
My Device: BlackBerry PRIV
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.
Developer
Posts: 205
Registered: ‎07-14-2008
My Device: 7230, 8700, 8820, 9000

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