如何运行在Android模拟器

如何运行在Android模拟器

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

问题描述

我有我已经写了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:\Users\janardhan\Desktop\flash.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.

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

08-24 17:00