使用flash与android webview

Par*_*ngh 5 flash android

我想在webview中使用flash.

我使用以下代码..

 mWebView = (WebView) findViewById(R.id.webview);
 mWebView.getSettings().setPluginsEnabled(true);
 mWebView.loadUrl("http://domain-path/flash/test.html");
Run Code Online (Sandbox Code Playgroud)

test.html包含嵌入的flash对象.

但是当我运行它时它什么也没显示.

请建议.....

小智 5

尝试添加

webView.getSettings().setPluginsEnabled(true);
webView.getSettings().setPluginState(PluginState.ON);
Run Code Online (Sandbox Code Playgroud)


Sun*_*dey 0

这是因为您的浏览器没有Flash播放器。您需要安装flash播放器10.1