If you are using Internet Explorer, please remove blackberry.com from your compatibility view settings.

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
arindamhit
Posts: 271
Registered: ‎12-24-2010
My Device: BlackBerry 10
My Carrier: Airtel

Browser Field is freezing the Application in 9800

[ Edited ]

Hi,

 

I have a browser field where i am loading a url locally. it is 140 kb of size. Now in BB 9800 (OS 6.0) device, when i am going to the end of the browser field and tapping(touching hardly) couple of times in the screen, the browser field stop working. it is not able to scroll after that, If i am pressing button, Application is getting freeze.

 

Here is my Browser Field code:

 

VerticalFieldManager vfm = new VerticalFieldManager(VERTICAL_SCROLL | VERTICAL_SCROLLBAR);
		BrowserFieldConfig bfConfig = new BrowserFieldConfig();
		bfConfig.setProperty(BrowserFieldConfig.NAVIGATION_MODE,BrowserFieldConfig.NAVIGATION_MODE_NONE);
		bfConfig.setProperty( BrowserFieldConfig.JAVASCRIPT_ENABLED, Boolean.TRUE );
		bfConfig.setProperty(BrowserFieldConfig.USER_AGENT, "MyApplication 1.0");
		bfConfig.setProperty( BrowserFieldConfig.VIEWPORT_WIDTH, new Integer(screenWidth - 2));
		BrowserFieldRequest request = new BrowserFieldRequest("local:///xxx.html");
		BrowserField browserField = new BrowserField(bfConfig);
		vfm.add(browserField);
		add(vfm);
		browserField.requestContent(request);

 Can any one please help.

Please use plain text.