如何插入Java中为Android(Eclipse的)一个SWF动画(FLASH) [英] How to insert a swf animation (flash) in Java for Android (Eclipse)

查看:826
本文介绍了如何插入Java中为Android(Eclipse的)一个SWF动画(FLASH)的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我一直在Google上搜寻它的天,我仍然无法找到任何东西,我已经尝试了一些codeS,但我也很小白是java所以每一个code我已经一直在努力,失败...

I've been googling it for days and I still can't find anything, I've already tried some codes, but I'm also really noob at java so every single code I've been trying, it fails...

好了,我要去尝试解释。

Well, I'm going to try to explain.

我编码,它使用3活动的应用程序。第一个有打开的第二个活动按钮,并在第二次活动我想打一个动画,但一旦我不能让它播放视频,也没有一个.gif,我已经转换为GIF .swf文件,我仍然不能使它发挥作用。

I'm coding an app which uses 3 activities. The first one has a button that opens the 2nd activity, and in the second activity I wanted to play an animation, but once I can't make it play a video, nor a .gif, I've converted the gif to .swf, and I still can't make it work.

然后我注意到这个问题一定是我:P

Then I noticed that the problem must be mine :P

这是我做的第一个问题,我发誓我已经在看别人,但我真的无法找到一个解决办法......但据我知道你是个pretty好社区,喜欢帮助别人,我真的AP preciate它。

It's the first question I'm making, and I swear I've already looking at the others but I really can't find a solution... But as far as I know you're a pretty good community that like to help the others, and I really appreciate it.

你们可以帮我把我的瑞士法郎,当我启动第二项活动工作?我会非常感激。
顺便说一句,如果你不明白的事情,我说,只是让我知道,我知道我的英语是不是最好的:P

Can you guys help me putting my .swf working when I launch the second activity? I'd be very grateful. Btw, if you don't understand something that I said, just let me know, I know my english isn't the best :p

最好的问候,
xickoh

Best regards, xickoh

推荐答案

Android版本更高版本不支持Flash。
对于低于ICS(4〜)Android版本,你可以插入SWF文件的WebView。

Android version higher than Gingerbread(2.3) does not support Flash. For Android version below ICS(4.~), you can insert a swf file to webview.

WebView wv = (WebView) findViewById(your id);
WebSettings ws = wv.getSettings();
ws.setPluginState(PluginState.ON);
ws.setJavaScriptEnabled(true);
wv.loadUrl(SWF FilePath);

希望这有助于。

这篇关于如何插入Java中为Android(Eclipse的)一个SWF动画(FLASH)的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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