[android-developers] Webview not showing flash
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"+
"quality=high id=ColorsPlayer name=ColorsPlayer allowscriptaccess=always"+
"flashvars=servicetype=amitg&geocheck=0&fixWidth=700&fixHeight=394&flvpath=feed01?e=2677239232%26h=2ac6ec78edb671b1ffe5583e89cc90e8&channel_index=1&controlPath=/player/control_in_live_v1.swf&showad=4&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
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+unsubscribe@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en
0 Comments:
Post a Comment
Subscribe to Post Comments [Atom]
<< Home