【发布时间】:2010-05-26 04:43:57
【问题描述】:
我有一个加载包含
试试下面的代码...有什么想法吗?我难住了。看起来确实像 HTC Sense 错误?
WebView wv = (WebView) findViewById(R.id.wv1);
wv.getSettings().setJavaScriptEnabled(true);
wv.getSettings().setBuiltInZoomControls(true);
wv.getSettings().setPluginsEnabled(true);
wv.loadData("
<html>
<body>
Here is the test embed:
<embed src=\"http://www.youtube.com/v/-ptYTGTNiyQ\"
type=\"application/x-shockwave-flash\" width=\"280\"
height=\"170\"></embed>
</body>
</html>",
"text/html", "UTF-8");
在我的测试中,这在所有没有 SenseUI 的 Android 版本上都可以正常运行,但是对于任何 SenseUI 手机来说它都显示为空白,因此用户无法点击它。
【问题讨论】: