目前我的解决方法是使用WebView,通过加载html来实现。
html中就加了一个embed
标签来加载.swf文件。
WebSettings setting = webView.getSettings();
setting.setJavaScriptEnabled(true);
setting.setPluginState(PluginState.ON);
setting.setAllowFileAccess(true)
setting.setAllowFileAccessFromFileURLs(true);
webView.loadUrl("file:///android_asset/flash.html")
但是一直显示"无法加载插件",是不是一定要装adobe flash插件?除此之外还有什么方法能显示flash?
You need Adobe Flashplayer support to play, that is, you need to install an Adobe Flashplayer on your machine. SWF can no longer keep up with the pace of the mobile era. In addition to needing plug-ins, it also depends on whether the device supports it. It does not necessarily matter if you have Flashplayer. can be played.