How to open webview in Blackberry?

How to open a link in webview in Blackberry, like iPhone and Android?

What cannot be opened in the browser, it must be opened in Webview through the application.

+6
source share
3 answers

The Blackberry equivalent of WebView is BrowserField . Sample code from this page :

import net.rim.device.api.browser.field2.*; import net.rim.device.api.ui.*; import net.rim.device.api.ui.container.*; public class BrowserFieldDemo extends UiApplication { public static void main(String[] args) { BrowserFieldDemo app = new BrowserFieldDemo(); app.enterEventDispatcher(); } public BrowserFieldDemo() { pushScreen(new BrowserFieldDemoScreen()); } } class BrowserFieldDemoScreen extends MainScreen { public BrowserFieldDemoScreen() { BrowserFieldConfig myBrowserFieldConfig = new BrowserFieldConfig(); myBrowserFieldConfig.setProperty(BrowserFieldConfig.NAVIGATION_MODE,BrowserFieldConfig.NAVIGATION_MODE_POINTER); BrowserField browserField = new BrowserField(myBrowserFieldConfig); add(browserField); browserField.requestContent("http://www.blackberry.com"); } } 
+4
source

Settings icon โ†’ Host routing tables โ†’ Register now

If the above instructions failed, try following these instructions in order.

 * Try getting your service books retransmitted. a. Login to your BlackBerry Web Client (BWC/BIS) site. b. Click "Profiles" (At the top of your BWC webpage via your PC) c. Click "Send Internet Browser Service Book" * Try rebooting your BlackBerry by removing and reinserting battery. * Make sure you are running BlackBerryOS 4.0 by checking: Check Options -> About If you are not running at least Version 4.0, you need to download and install BlackBerryOS 4.0 then repeating all the above instructions again. * If that does not work, and you are on a BlackBerry Enterprise Server (BES), try re-activating your BlackBerry on BES. This may be as simple as connecting your BlackBerry to your PC and synchronizing your BlackBerry while Outlook is in ONLINE mode. 
0
source

I think you are looking for the BrowserField user interface component .

0
source

Source: https://habr.com/ru/post/885898/


All Articles