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.

New Contributor
Posts: 9
Registered: ‎07-17-2012
My Device: Blackberry Torch
My Carrier: Tata Docomo

Browserfield error on Wifi connectivity without Internet connection



I'm using browserfield in my app to show some site to the user. Before trying to load the html site, I check for connectivity using this code:


public static boolean isCoverageSufficent()
		boolean retval = false;
		if(RadioInfo.getState() == RadioInfo.STATE_ON)
			if(RadioInfo.getNetworkService() == RadioInfo.NETWORK_SERVICE_EDGE || CoverageInfo.isCoverageSufficient(CoverageInfo.COVERAGE_DIRECT))
				retval = true;
		if(RadioInfo.getSignalLevel(RadioInfo.WAF_WLAN) != RadioInfo.LEVEL_NO_COVERAGE)
			retval = true;
		return retval;


However, in situation where the device is connect to a Wifi which has no Internet connectivity, this method returns true. Consequently the browserfield tries to load the page, fails and instead shows this message:

http://www.mysite.com/<br><br>Could not select proper Transport Descriptor for: http://www.mysite.com/

 where http://www.mysite.com is the page I'm trying to load.


What I want to do, is to handle this case, either by detecting it in isCoverageSufficient method or in some BrowserField method (I tried using documentError of BrowserFieldListener, but the flow never reached there), and show appropriate dialog to the user.


How can I do it? Any idea? Smiley Sad

Posts: 19,636
Registered: ‎07-14-2008
My Device: Not Specified

Re: Browserfield error on Wifi connectivity without Internet connection

I think this question has been asked before, try this:


or search for some additional answers. 

New Contributor
Posts: 9
Registered: ‎07-17-2012
My Device: Blackberry Torch
My Carrier: Tata Docomo

Re: Browserfield error on Wifi connectivity without Internet connection

[ Edited ]



The solution given in that thread has same effect.

if(CoverageInfo.isCoverageSufficient(CoverageInfo.COVERAGE_DIRECT, RadioInfo.WAF_WLAN, false))

It detects that the device is connected to Wifi, but cannot detect whether that Wifi has Internet connectivity or not (ie WLAN without Internet).

If I can detect when BrowserField fails to load the page due to this (some event /error handler of BrowserField), that'll also help.