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

by Justin Grammens » Wed, 26 May 2010 23:10:54 GMT


Sponsored Links
 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("
<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");

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.

--



Other Threads

1. Do you have an ADP1? Have you received the holiday update OTA?

Hi Steve,
there is no ADP update for now.
The only updated version (1.1) are for G1 and for Holiday (the phone
Google shipped to employers as holiday gift).
ADP don't have OTA updates because if you make changes to your system
and you install a OTA update, you lose your changes.
Google guys are thinking a way to relase the official ADP1.1 update to
developers, but we don't know anything yet.
You can install Holiday on your phone, but it isn't official because
the only official way to get an Holiday uptade is to update a holiday
phone.

Maurizio

--~--~---------~--~----~------------~-------~--~----~

2. Unable to upload a signed .apk file to Andorid Market

I set up and Android Market account and tried to upload a signed .apk
file, but it keep loading with a "circle" and nothign happened.

Anybody have the same issure?

How to solve it?

Thanks!
--~--~---------~--~----~------------~-------~--~----~

3. FallbackCheckinService

4. Development in XP or Vista.

5. 'roaming'

6. Android Theme Creator

7. Adbgui..