【问题标题】:How to open webview in Blackberry?如何在黑莓中打开网页视图?
【发布时间】:2011-04-14 10:20:32
【问题描述】:

如何在 iPhone 和 Android 等黑莓的 webview 中打开链接?

不应该在浏览器中打开,应该通过应用程序在Webview中打开。

【问题讨论】:

  • 在这里重新提出相同的问题是不可接受的行为。如果您想引起注意您的问题,两天后您将被允许place a bounty on it。您也可以edit your question添加更多信息,这可能会使您的问题更容易理解和回答。

标签: browser blackberry webview


【解决方案1】:

WebView 的 Blackberry 等效项是 BrowserField。来自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");
    }
}

【讨论】:

  • thanx 核心工作得很好。但我不能放大特定的网站页面。这有可能吗?
  • 也许可以尝试使用BrowserFieldConfig 中的一些选项。
  • 这只是java文件,对吧?...xml文件呢?...这是怎么显示的?谢谢
【解决方案2】:

选项图标 -> 主机路由表 -> 立即注册

如果上述说明失败,请尝试逐个执行这些说明

* 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.

【讨论】:

  • thanx Alfred 。但我想通过无法通过设备浏览器打开的应用程序打开特定站点。那么我该怎么办?
【解决方案3】:

我认为您正在寻找BrowserField UI component

【讨论】:

    猜你喜欢
    • 1970-01-01
    • 2016-01-13
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    相关资源
    最近更新 更多