browserfield

White screen is displaying while loading local HTML files in Browser Field?

蓝咒 提交于 2019-12-06 15:16:13
I am using BrowserField to display some local HTML files in my application. It is displaying the HTML files properly. But while starting of the screen it is displaying some white screen (background). How can i get rid of this issue? I am using the below code: BrowserFieldConfig _bfConfig = new BrowserFieldConfig(); _bfConfig.setProperty(BrowserFieldConfig.NAVIGATION_MODE,BrowserFieldConfig.NAVIGATION_MODE_POINTER); _bfConfig.setProperty(BrowserFieldConfig.JAVASCRIPT_ENABLED, Boolean.TRUE ); _bfConfig.setProperty(BrowserFieldConfig.USER_AGENT, "MyApplication 1.0"); BrowserField myBrowserField =

How to cache in a Blackberry BrowserField

微笑、不失礼 提交于 2019-12-04 08:47:58
问题 I am creating a Blackberry application to display a full screen web view of a certain site. I have a working browserfield that displays properly but navigation from page to page is slower than that of the native browser. The browserfield does not seem to have a built in cache causing the load time to be slow. When I add the following code to manage the cache the site no longer displays properly. BrowserFieldScreen.java: import net.rim.device.api.browser.field2.*; import net.rim.device.api

How to cache in a Blackberry BrowserField

坚强是说给别人听的谎言 提交于 2019-12-03 00:55:21
I am creating a Blackberry application to display a full screen web view of a certain site. I have a working browserfield that displays properly but navigation from page to page is slower than that of the native browser. The browserfield does not seem to have a built in cache causing the load time to be slow. When I add the following code to manage the cache the site no longer displays properly. BrowserFieldScreen.java: import net.rim.device.api.browser.field2.*; import net.rim.device.api.script.ScriptEngine; import net.rim.device.api.system.*; import net.rim.device.api.ui.*; import net.rim

Blackberry webview can not connect to internet and/or display a web page

天涯浪子 提交于 2019-12-02 05:55:56
I am creating a simple app using Eclipse and Blackberry JRE 7.0 as per the example given at: http://docs.blackberry.com/en/developers/deliverables/11958/Configure_a_browser_field_825671_11.jsp I am trying to load a simple HTML page hosted on a remote server inside browser field in the app. When running the app on 9930 Simulator I always get the error 'Local connection timeout after 120000 on simulator'. The same remote page shows up fine on the web browser of the same simulator.. I am making sure to start the MDS simulator. The same link shows up fine in simulator browser. Its only when using

Blackberry 5.0 - BrowserField handle link clicked

喜夏-厌秋 提交于 2019-11-29 07:49:19
I am trying to handle an event in BrowserField when the user actually clicks a link. I studied BrowserFieldListener , tried its documentCreated() method but that gives me a response when the page starts loading. I want a trigger the moment user clicks a link inside browserField. What am i missing here? Override handleNavigationRequest() of ProtocolController like ProtocolController controller = new ProtocolController(browserField) { public void handleNavigationRequest(BrowserFieldRequest request) throws Exception { /* Here you get the redirection link using request.getURL() and do what you

Display simple HTML in a native BlackBerry application

时光毁灭记忆、已成空白 提交于 2019-11-27 15:25:17
I want to be able to display some simple chunks of HTML in my native BlackBerry app, NOT returned from a URL. This is similar to existing Stackoverflow questions (e.g. here and here ), but I need help getting the actual BlackBerry sample code to run (or perhaps somebody to tell me why this is doomed to not work!). The BlackBerry website has some sample 'browser' code based on different API versions available: V4.5 API sample V5.0 API sample I've found the sample code that ships with the Component Packs (more info here ), and tried to get the V4.5 sample code to work. I was hoping this would be

Display simple HTML in a native BlackBerry application

余生长醉 提交于 2019-11-26 17:09:02
问题 I want to be able to display some simple chunks of HTML in my native BlackBerry app, NOT returned from a URL. This is similar to existing Stackoverflow questions (e.g. here and here), but I need help getting the actual BlackBerry sample code to run (or perhaps somebody to tell me why this is doomed to not work!). The BlackBerry website has some sample 'browser' code based on different API versions available: V4.5 API sample V5.0 API sample I've found the sample code that ships with the