Reputation: 314
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.
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.
Then I noticed that the problem must be mine :P
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.
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
Best regards, xickoh
Upvotes: 4
Views: 9087
Reputation: 2820
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);
Hope this helps.
Upvotes: 1
Reputation: 11
I'm not 100% sure that android supports flash. Unless I'm missing some part of your questions then I would go back to trying to play it as a video. You could probably use a MediaPlayer to accomplish this. I believe this is what I used when I was working on a internet video search service application.
Upvotes: 0