0

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.

Gaurav
  • 1,214
  • 2
  • 17
  • 32
  • I have installed the Adobe air player on the device and the flash is working on it, though the display quality is a bit low. Anyone know some better way apart from installing the adobe air? – Gaurav Apr 25 '14 at 12:33

3 Answers3

1
webview.getSettings().setPluginsEnabled(true);

Credits to joren: Load an SWF into a WebView

Community
  • 1
  • 1
shkschneider
  • 17,833
  • 13
  • 59
  • 112
1

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)

chuck
  • 11
  • 1
0

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

Gaurav
  • 1,214
  • 2
  • 17
  • 32