I wish to display an swf file during my android application.

For testing reasons am using android emulator . And so i produced an online sdcard for that application to see the files.Inside this sdcard i put my swf file and am attempting to open the swf file during my code.

Am not receiving any error on log cat, but obtaining a blank screen .

Following my code exhibiting swf on WebView.

protected void onCreate(Bundle savedInstanceState) {
            String html =
                "<object width=\"550\" height=\"400\"><param name=\"movie\" value=\"file:///Demo_mobile.swf\">" +
                "<embed src=\"file:///Demo_mobile.swf\" width=\"550\" height=\"400\"> </embed> </object>";
                String mimeType = "text/html";
                String encoding = "utf-8";
            WebView wv=(WebView) findViewById(R.id.webview);
            wv.loadDataWithBaseURL("null", html, mimeType, encoding, "");
            wv.setWebViewClient(new HelloWebViewClient());


Experts please produce an answer with this problem.??

Try below code, that could useful for you!

    mWebView = (WebView) findViewById(R.id.webview);

After that you can load data in to the webview like so

    String html = "<object width=\"550\" height=\"400\"> <param name=\"movie\" value=\"file:///sdcard/flash/2204355.swf\"> <embed src=\"file:///sdcard/flash/2204355.swf\" width=\"550\" height=\"400\"> </embed> </object>";
    String mimeType = "text/html";
    String encoding = "utf-8";

    mWebView.loadDataWithBaseURL("null", html, mimeType, encoding, "");

I merely made custom html within the program and told it to load a expensive file which i had saved within the expensive folder on my small sdcard.