BlackBerry Forums Support Community               

Closed Thread
 
LinkBack Thread Tools
Old 07-03-2010, 07:20 AM   #1 (permalink)
Knows Where the Search Button Is
 
Join Date: Mar 2009
Model: Storm
PIN: N/A
Carrier: Vodafone
Posts: 16
Post Thanks: 0
Thanked 0 Times in 0 Posts
Default Finding the wifi connection speed.

Please Login to Remove!

Hi All,

I am using blackberry 9520. I am writing an application which requires wifi connection properly working. Following is the code to check the wif connection :

********************************************
private String getWiFiUrl() {
if (WLANInfo.getWLANState() == WLANInfo.WLAN_STATE_CONNECTED) {
if (CoverageInfo.isCoverageSufficient(CoverageInfo.CO VERAGE_DIRECT,
RadioInfo.WAF_WLAN, false)) {
EventLogger.logEvent(0x4e697e68da459c1cL,
("Wifi: ").getBytes(), EventLogger.ALWAYS_LOG);
return ";deviceside=true;interface=wifi";
}
} else {
EventLogger.logEvent(0x4e697e68da459c1cL, ("NonWifi: ").getBytes(),
EventLogger.ALWAYS_LOG);
msg = "Insufficient Coverage on wifi";
}
return null;
}
********************************************

if i switch off Wifi access point, then the above code returns null. When Wifi access point is on & speed is good the my application works fine. But the problem is when access point is on & the speed is very low, then my application cannot conact to my server.

My problem is that, how I can find that the Wifi speed is perfect. Because, if the speed is perfect then only I try toconnect server, otherwise, I will give some message to user.

Please help me.

Thanks in advance.
Offline  
Closed Thread


Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On

New Vintage Velocette MAC 350cc Single 1949 Petrol Fuel Gas Tank
$290.0
New Vintage Velocette MAC 350cc Single 1949 Petrol Fuel Gas Tank pictureVintage Mac Allied Hex Rethreader Dies - # TR-8-U in Case
$15.0
Vintage Mac Allied  Hex Rethreader Dies - # TR-8-U in Case  pictureVtg MAC Tools X106 5/16" Chrome SAE Socket 3/8" Drive 6 Point Sabina Ohio USA
$7.0
Vtg MAC Tools X106 5/16Vintage Wood/Metal Printing Block Stamp for Kraft Mac N Cheese Dinner, 1959
$12.0
Vintage Wood/Metal Printing Block Stamp for Kraft Mac N Cheese Dinner, 1959 pictureGW Instruments MacADIOS - Vintage Mac Lab Interface 411
$169.0
GW Instruments MacADIOS - Vintage Mac Lab Interface 411 picture






Copyright 2004-2016 BlackBerryForums.com.
The names RIM and BlackBerry are registered Trademarks of BlackBerry Inc.