[android-developers] Re: Some bugs of WebView

2009-02-11 Thread Mark Murphy
yhfudev wrote: > I don't know where to put the bug report of APIs. http://b.android.com > 1) could not handle the color values > When I use the HTML code: > > the WebView could not handle this type of tags. But > > can work well. > > This bug exist both in SDK1.0 & SDK1.1 This works fine on

[android-developers] Re: Some bugs of WebView

2009-02-11 Thread kolby
For bug #1: Not sure if it will work for these particular attributes, but I ran into a similar problem before, and when I dropped the double quotes around the attribute values, it worked. Michael On Feb 11, 12:32 pm, yhfudev wrote: > I don't know where to put the bug report of APIs. > > I use

[android-developers] Re: Some bugs of WebView

2009-02-11 Thread kolby
Interestingly enough, whilke it might work when browsing to a web page, it doesn't when you deliver the content by calling "loadData" on the WebView object. It gives the error: 02-11 14:04:00.802: DEBUG/skia(7323): xxx jpeg error 53 Not a JPEG file: starts with 0x%02x 0x%02x on the LogCat

[android-developers] Re: Some bugs of WebView

2009-02-11 Thread kolby
Tried it again, and in loadData it doesn't work with or without the quotes. However, this worked: some text some text Michael On Feb 11, 2:06 pm, kolby wrote: > Interestingly enough, whilke it might work when browsing to a web > page, it doesn't when you deliver the content by calling "loadDat

[android-developers] Re: Some bugs of WebView

2009-02-11 Thread kolby
Mark, unfortunately, no dice on this either. Still doesn't accept the color setting in hex. Michael On Feb 11, 2:55 pm, Mark Murphy wrote: > kolby wrote: > > Interestingly enough, whilke it might work when browsing to a web > > page, it doesn't when you deliver the content by calling "loadData

[android-developers] Re: Some bugs of WebView

2009-02-11 Thread Mark Murphy
kolby wrote: > Interestingly enough, whilke it might work when browsing to a web > page, it doesn't when you deliver the content by calling "loadData" on > the WebView object. It gives the error: > > 02-11 14:04:00.802: DEBUG/skia(7323): xxx jpeg error 53 Not a > JPEG file: starts with 0x

[android-developers] Re: Some bugs of WebView

2009-02-11 Thread Mark Murphy
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);

[android-developers] Re: Some bugs of WebView

2009-02-11 Thread kolby
Hmmm, String test = "some text in green"; 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, M

[android-developers] Re: Some bugs of WebView

2009-02-11 Thread Mark Murphy
kolby wrote: > Hmmm, > >String test = "some text \"#00ff00\">in green"; >web.loadDataWithBaseURL("data:///some/text/",test, "text/html", > "utf-8", ""); > > only gives me "some text" and nothing in green. Aha! JBQ wrote: "LoadData loads your data as a data: Uri. You need to Uri-escape

[android-developers] Re: Some bugs of WebView

2009-02-14 Thread yhfudev
After I have tried some methods, it could work now. use: loadDataWithBaseURL (null, content, "text/html", "utf-8", "about:blank"); Thank you very much! On Feb 11, 3:21 pm, Mark Murphy wrote: > kolby wrote: > > Hmmm, > > >    String test = "some text > \"#00ff00\">in green"; > >    web.loadDat