Question

I am trying to play one SWF (flash) file in my application deployed on Android 4.2.2. When I save the file on file system, and open it with browser, it works well. But when I try to open the same in webview in my application, it does not play the swf. It just shows a broken file type small image. I have searched stack for the proper answer but any answer I found here is very old and not working for me, this must be because of the non-support of swf on new android version. I have also tried after installing the old flash player, but it shows just the first frame of swf.

Was it helpful?

Solution

webview.getSettings().setPluginsEnabled(true);

Credits to joren: Load an SWF into a WebView

OTHER TIPS

It sounds like you need an embedded flash player that plays the SWF rather than simply embedding the SWF. I haven't flashed around in a while now and certainly don't do it on Android but that's my immediate thought. (EDIT - The other answer here nailed it: plugin)

Seems like installing Adobe Air player on device is the only solution. Please suggest if any better way is available.

Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top