【问题标题】:shouldInterceptRequest equivalent for Android Froyo (2.2)与 Android Froyo (2.2) 等效的 shouldInterceptRequest
【发布时间】:2011-12-27 15:38:14
【问题描述】:

我有一个在 Android 应用程序中播放并与之交互的 Flash 文件。 此应用程序的 Android 版本为 2.3 。 Flash 文件嵌入在 Android 的 WebView 中,并通过:shouldInterceptRequest 方法与应用程序交互:WebViewClient

WebView web_Player;
web_Player.setWebViewClient(new WebViewClient() {         
    @Override
    public WebResourceResponse shouldInterceptRequest(WebView view, String url) {
    //CODE CODE CODE
    }
}

问题: 我需要这段代码来支持不知道shouldInterceptRequest 方法的Android 2.2。
我该如何克服这个问题? Android 2.2 中 Flash 文件可以通过哪些其他方式与应用程序通信?

【问题讨论】:

  • 有人吗?常见的,我有点卡在这里......
  • 注意:即使是 2.3 也不知道 shouldInterceptRequest 方法。

标签: android flash webview


【解决方案1】:

我最终使用了:

public void onLoadResource(WebView view, String url){}

完美运行。

【讨论】:

  • 如果您还要修改页面的资源(CSS、JS 等),则不会。
猜你喜欢
  • 1970-01-01
  • 1970-01-01
  • 1970-01-01
  • 1970-01-01
  • 1970-01-01
  • 1970-01-01
  • 1970-01-01
  • 2011-05-10
  • 1970-01-01
相关资源
最近更新 更多