使用闪光灯与Android的WebView [英] using flash with android webview

查看:115
本文介绍了使用闪光灯与Android的WebView的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我想使用闪光灯的WebView。

I want to use flash in webview.

我用下面的code ..

I used following code..

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

该test.html的是包含Flash对象嵌入。

The test.html is containing flash object embedded.

但是当我运行这一点,什么都不显示。

But when I run this it displays nothing.

请建议.....

推荐答案

尝试添加

webView.getSettings().setPluginsEnabled(true);
webView.getSettings().setPluginState(PluginState.ON);

这篇关于使用闪光灯与Android的WebView的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆