加载Flash文件(.swf文件)的WebView Android中 [英] loading flash files (.swf) webview in android

查看:535
本文介绍了加载Flash文件(.swf文件)的WebView Android中的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

可能重复:
  加载一个SWF到的WebView

我有一个SWF文件,我想开到一个web视图,也希望起到的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?

我得到的SWF文件中EN codeD形式的WebView,而不是一个时钟。

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);

这篇关于加载Flash文件(.swf文件)的WebView Android中的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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