3

Possible Duplicate:
Load an SWF into a WebView

I have a .swf file and I want to open it into a webview and also want to play flash games loaded there in the webview. How do I do that?

alt text

I am getting swf file in encoded form in webview instead of a clock.

Community
  • 1
  • 1
Kruti Mevada
  • 517
  • 5
  • 7
  • 21

1 Answers1

7

I think You should implement setPluginsEnabled method.

example

String url ="file:///android_asset/hoge.swf";

WebView wv=(WebView) findViewById(R.id.WebView01);

wv.getSettings().setPluginsEnabled(true);

wv.loadUrl(url);
Bill the Lizard
  • 398,270
  • 210
  • 566
  • 880
Kitatuba
  • 86
  • 2