在 android 中加载 Flash 文件 (.swf) webview [英] loading flash files (.swf) webview in android
本文介绍了在 android 中加载 Flash 文件 (.swf) webview的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
可能的重复:
将 SWF 加载到 WebView
我有一个 .swf 文件,我想在 webview 中打开它,还想玩加载在 webview 中的 Flash 游戏.我该怎么做?
I have a .swf file and I want to open it into a webview and also want to play flash games loaded there in the webview. How do I do that?
我在 webview 中获取编码形式的 swf 文件而不是时钟.
I am getting swf file in encoded form in webview instead of a clock.
推荐答案
我认为你应该实现 setPluginsEnabled 方法.
I think You should implement setPluginsEnabled method.
示例
String url ="file:///android_asset/hoge.swf";
WebView wv=(WebView) findViewById(R.id.WebView01);
wv.getSettings().setPluginsEnabled(true);
wv.loadUrl(url);
这篇关于在 android 中加载 Flash 文件 (.swf) webview的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文