loading flash files (.swf) webview in android

11,954

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);
Share:
11,954

Related videos on Youtube

Kruti Mevada
Author by

Kruti Mevada

An android application developer

Updated on June 04, 2022

Comments

  • Kruti Mevada
    Kruti Mevada almost 2 years

    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.

Related