由网友(不囍你i)分享简介:我有我已经写了code像i have an swf file in local assets folder i have written the code likepublic void onCreate(Bundle savedInstanceState) {super.onCreate(savedInstanc...
我有我已经写了code像
i have an swf file in local assets folder i have written the code like
public void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
setContentView(R.layout.main);
Context mContext= PanchangamActivity.this;
WebView wv=new WebView(mContext);
wv = (WebView)findViewById(R.id.webView1);
wv.getSettings().setJavaScriptEnabled(true);
wv.getSettings().setPluginsEnabled(true);
wv.getSettings().setAllowFileAccess(true);
wv.loadUrl("file:///android_asset/www/swf2.html");
}
SWF2.HTML:
SWF2.HTML:
<html>
<head>
<meta http-equiv="Content-Type" content="text/html" charset="UTF-8" />
</head>
<body>
<object width="215" height="140">
<param name="movie" value="flash.swh">
<embed src="c:UsersjanardhanDesktopflash.swf"
width="215" height="140">
</embed>
</object>
</body>
现在当运行在Android模拟器我得到
now while running that in android emulator i am getting
请帮帮我!如何解决这个
please help me! how to solve this
推荐答案
你看到的是缺少插件图标,你没有安装Flash播放器。
What you see is the missing plugin icon, you don't have the Flash Player installed.
我会推荐阅读How我可以在Android模拟器了解如何让闪存和在模拟器上运行的信息安装Adobe Flash。
I would recommend reading How can I install adobe flash on the android emulator for information on how to get Flash up and running on the emulator.
相关推荐
最新文章