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
Developer
Posts: 77
Registered: ‎04-01-2011
My Device: Bold 9700
My Carrier: Rogers

BrowserField times out on OS7

I'm trying to open a URL that points to a remote server. The simulator times out when trying to reach the web page. I've verified that the server is up and the page is available. I've used the actual web browser application in the simulator to navigate to the same page and it works properly.

 

My app works properly on all other simulators and physical devices that I have tested it on for OS5 and OS6.

 

 

BrowserFieldConfig config = new BrowserFieldConfig();
config.setProperty(BrowserFieldConfig.VIEWPORT_WIDTH, new Integer(Display.getWidth()));
config.setProperty(BrowserFieldConfig.INITIAL_SCALE, new Float(1.0));
config.setProperty(BrowserFieldConfig.USER_SCALABLE, Boolean.FALSE);     
config.setProperty("Content-Type", "text/plain; charset=UTF-8");
_bf = new BrowserField(config);
_bf.requestContent(remoteURL);

 

Do I need to do something different for OS7?

 

 

 

I'm running the IDE with SDK version 5.0.0.25

 

I'm running the 9810 simulator version 7.1.0.658

 

My OS7 9900 simulator crashes at this point, and doesn't give me any information.