Hi,

I am trying to open a html page with embedded flash object using webview.
It is not showing the flash object. Could you please help me? I am using
sdk api 10.

my code is like

package com.test5;

import android.app.Activity;
import android.os.Bundle;
import android.webkit.WebView;

public class Test5Activity extends Activity {
    /** Called when the activity is first created. */
    @Override
    public void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.main);
        WebView myWebView = (WebView) findViewById(R.id.webview);
        String summary = "<embed width=700 height=394
type=application/x-shockwave-flash"+
         "src=http://www.amitwiki.com/player/Main_v1.swf"+
         "quality=high id=ColorsPlayer name=ColorsPlayer
allowscriptaccess=always"+

"flashvars=servicetype=amitg&amp;geocheck=0&amp;fixWidth=700&amp;fixHeight=394&amp;flvpath=feed01?e=2677239232%26h=2ac6ec78edb671b1ffe5583e89cc90e8&amp;channel_index=1&amp;controlPath=/player/control_in_live_v1.swf&amp;showad=4&amp;vastpreurl=http%3A%2F%
2Fc7.zedo.com
%2Fjsc%2Fc1%2Ffns.vast%3Fn%3D1656%26c%3D1169%2F14%26d%3D75%26s%3D4%26v%3Dvast2%26z%3D>";

       myWebView.getSettings().setJavaScriptEnabled(true);
       myWebView.getSettings().setPluginsEnabled(true);
      String mimeType = "text/html";
String encoding = "utf-8";
 myWebView.loadDataWithBaseURL("null", summary, mimeType, encoding, "");
    }
}

Regards,

Amit Gupta
Singapore

-- 
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en

Reply via email to