【问题标题】:I can't load SWF into webView android我无法将 SWF 加载到 webView android
【发布时间】:2014-09-23 12:38:05
【问题描述】:

我看了这 3 个问题

Problem loading swf file in android

Flash is not loading in Web view in Android

Load an SWF into a WebView

但我无法将我的 SWF 加载到 webView 中

我的代码在这里

WebView webView = new WebView(context);
    webView.setLayoutParams(new LayoutParams(LayoutParams.MATCH_PARENT, LayoutParams.MATCH_PARENT));

webView.getSettings().setJavaScriptEnabled(true);

    addView(webView);
    webView.loadUrl("file:///android_asset/" + dir +  File.separator + webapp.getFolder() + File.separator + webapp.getSource());

我的资产

日志

通话后,屏幕保持白色

【问题讨论】:

    标签: android android-webview android-assets


    【解决方案1】:

    我想你错过了这个电话

    webvIEW.getSettings().setPluginsEnabled(true);
    

    【讨论】:

      猜你喜欢
      • 2011-02-28
      • 2013-05-10
      • 1970-01-01
      • 1970-01-01
      • 2011-04-24
      • 1970-01-01
      • 1970-01-01
      • 2011-06-18
      • 1970-01-01
      相关资源
      最近更新 更多