如何在android模拟器中运行.swf文件? [英] how to run the .swf file in android emulator?

查看:30
本文介绍了如何在android模拟器中运行.swf文件?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我在本地资产文件夹中有一个 swf 文件,我编写的代码如下

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:

 <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 Player.

What you see is the missing plugin icon, you don't have the Flash Player installed.

我建议阅读 如何安装 adobe在 android 模拟器上刷机,了解有关如何在模拟器上启动和运行 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.

这篇关于如何在android模拟器中运行.swf文件?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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