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
New Developer
nurikabe
Posts: 44
Registered: ‎08-20-2008
My Device: Not Specified

Easy way to check Internet access availablity / throughput?

Given that people often have trouble getting through their wi-fi router to the open Internet, we always ping a status page on our server to make sure we're good to go.  If the connection times out, we pop an alert insturcting the user to check network settings.

 

Problem is.. that timeout can be fairly long.  Is there any way to configure how long the BlackBerry will wait before returning a timeout error?  For that matter, does BlackBerry have any easy way to check that access to the Internet is possible?  (As opposed to using just CoverageInfo.isOutOfCoverage() to make sure wireless is up or not.) 

 

Also, is there a way to determine throughput of any particular connection?

 

Thanks!

 

Please use plain text.
Developer
KeniF
Posts: 131
Registered: ‎08-13-2008
My Device: Not Specified

Re: Easy way to check Internet access availablity / throughput?

try

WLANInfo.getWLANState()==WLANInfo.WLAN_STATE_CONNECTED

or methods in the same class

Please use plain text.
Developer
simon_hain
Posts: 15,956
Registered: ‎07-29-2008
My Device: Z10 LE
My Carrier: O2 Germany

Re: Easy way to check Internet access availablity / throughput?

afaik there is no way to check the availability other then the mentioned coverageinfo etc.

you can change the timeout using SocketConnectionEnhanced, see http://supportforums.blackberry.com/rim/board/message?board.id=java_dev&message.id=1888&query.id=86592
----------------------------------------------------------
feel free to press the like button on the right side to thank the user that helped you.
please mark posts as solved if you found a solution.
@SimonHain on twitter
Please use plain text.
Developer
KeniF
Posts: 131
Registered: ‎08-13-2008
My Device: Not Specified

Re: Easy way to check Internet access availablity / throughput?

SocketConnectionEnhanced doesn't work for 4.5 though (?)
Please use plain text.