【问题标题】:Jar file for HttpRequestHandler in lwuit in j2mej2me中lwuit中HttpRequestHandler的Jar文件
【发布时间】:2013-07-23 23:51:55
【问题描述】:

我需要在 j2me 模拟器中打开一个网页。因为我有可以通过使用 HTMLComponent 来做到这一点的流程。但是我不能使用这个 HttpRequestHandler 类在 Lwiit 的 j2me 中创建处理程序,谁能告诉我我的 j2me 中缺少什么?如果有任何 JAR 文件可以使用它,那么请给我使用它的建议。然后我也尝试过 DocumentRequestHandler 而不是 HttpRequestHandler 但它向我展示了“连接流中的错误”

我的代码是:

         DocumentRequestHandler handler=new DocumentRequestHandler() {

        public InputStream resourceRequested(DocumentInfo di) {
          return null;
            //           throw new UnsupportedOperationException("Not supported yet.");
        }
    };
 HTMLComponent htmlc=new HTMLComponent(handler);
 htmlc.setPage("http://facebook.com");
 addComponent(htmlc);
 show();

在这段代码中,我需要在 DocumentRequestHandler 中返回什么?

【问题讨论】:

    标签: java-me lwuit html-components


    【解决方案1】:

    您要查找的课程可在 LWUITBrowser 示例应用程序中找到,并且可以从 LWUIT SVN 的 MIDP/applications 下检出。

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 2012-06-21
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      相关资源
      最近更新 更多