<embed> in HTML loaded by Webview Broken in Sense UI

Posted by Justin on Stack Overflow See other posts from Stack Overflow or by Justin
Published on 2010-05-26T04:43:57Z Indexed on 2010/05/26 4:51 UTC
Read the original article Hit count: 224

Filed under:
|
|

I have a WebView that loads HTML that contains an <embed>. When loading in stock android (G1, NexusOne, Ion, etc) it looks fine and can be clicked on to watch it in the YouTube app. But when loading it using either the HTC EVO or Incredible (both Sense UI phones ) the space where the content should be is completely blank.

Try this code below... Any ideas? I'm stumped. Certainly looks like an HTC Sense bug?

WebView wv = (WebView) findViewById(R.id.wv1); wv.getSettings().setJavaScriptEnabled(true); wv.getSettings().setBuiltInZoomControls(true); wv.getSettings().setPluginsEnabled(true); wv.loadData("Here is the test embed: ", "text/html", "UTF-8");

In my testing, this will run fine on all Android versions, without SenseUI, but it shows blank for what looks like any SenseUI phone, so the user can't click on it.

© Stack Overflow or respective owner

Related posts about android

Related posts about webview