BlackBerry Forums Support Community
              

Closed Thread
 
Thread Tools
Old 07-03-2010, 07:20 AM   #1
smokingfly
Knows Where the Search Button Is
 
Join Date: Mar 2009
Model: Storm
PIN: N/A
Carrier: Vodafone
Posts: 16
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



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

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


OEM Dell XPS 8910 8920 8930 Alienware Aurora R5 R6 R7 Front Cooling Fan 7M0F5 picture

OEM Dell XPS 8910 8920 8930 Alienware Aurora R5 R6 R7 Front Cooling Fan 7M0F5

$12.11



NEW DELL OEM REPLACEMENT PROJECTOR LAMP FOR 4220 4320 GENUINE ORIGINAL  picture

NEW DELL OEM REPLACEMENT PROJECTOR LAMP FOR 4220 4320 GENUINE ORIGINAL

$198.22



DELL 330-6581 3306581 725-10229 OEM LAMP FOR 1510X 1610HD 1610X  - Made By DELL picture

DELL 330-6581 3306581 725-10229 OEM LAMP FOR 1510X 1610HD 1610X - Made By DELL

$39.98



Genuine Dell OEM G Series G7 7790 CPU and Graphics Heatsink Assembly XRF05 picture

Genuine Dell OEM G Series G7 7790 CPU and Graphics Heatsink Assembly XRF05

$20.30



Genuine OEM Dell 2375 B2375dnf B2375dfw 110V Fuser fixing N41P2 sku 724-BBCI picture

Genuine OEM Dell 2375 B2375dnf B2375dfw 110V Fuser fixing N41P2 sku 724-BBCI

$94.99



1PCS NEW FIT FOR OEM Dell AC Adapter Dell Alienware DA330PM190 LA330PM190 330W picture

1PCS NEW FIT FOR OEM Dell AC Adapter Dell Alienware DA330PM190 LA330PM190 330W

$117.97







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