Hmmm,
String test = "<html><head></head><body>some text <font color=
\"#00ff00\">in green</font></body></html>";
web.loadDataWithBaseURL("data:///some/text/",test, "text/html",
"utf-8", "");
only gives me "some text" and nothing in green.
Saving to a file just to make the html parser work seems excessive for
a dynamic web app.
Michael
On Feb 11, 3:14 pm, Mark Murphy <[email protected]> wrote:
> kolby wrote:
> > Mark,
>
> > unfortunately, no dice on this either. Still doesn't accept the color
> > setting in hex.
>
> public void onCreate(Bundle icicle) {
> super.onCreate(icicle);
> setContentView(R.layout.main);
> browser=(WebView)findViewById(R.id.webkit);
>
> browser.getSettings().setJavaScriptEnabled(true);
> browser.loadUrl("file:///android_asset/geoweb1.html");
>
> }
>
> With the file in question containing:
>
> <font color="#00FF00">You are at</font>
>
> Works absolutely fine for me on 1.0r2 and the G1. The text indicated
> shows up in green, as expected.
>
> --
> Mark Murphy (a Commons Guy)http://commonsware.com
> _The Busy Coder's Guide to Android Development_ Version 2.0 Published!
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en
-~----------~----~----~----~------~----~------~--~---