Try loadDataWithBaseURL() with a null URL for the first parameter.

On Thu, Dec 15, 2011 at 5:46 AM, Neilz <[email protected]> wrote:
> I wish this was an april fool joke, but no. This is nuts.
>
> I have a certain piece of text which when I load it into a webview, it
> displays fine. If I pause and then resume the activity, the webview is
> blank. Usually it happens immediately on the first resume, sometimes
> it takes a few goes.
>
> Once it's happened, no webviews in my app will display anything at
> all. Completely unrelated activities have blank webviews.
>
> The offending text is this:
>
> webView.loadData("<ul><li>3</li><li>Orange</li><li>T-Mobile</
> li><li>Virgin</li></ul>", mimeType, encoding);
>
> I've started with a very long page of HTML and whittled it down to
> that line. It breaks my webview. If I edit the line at all, it loads
> fine every time. I've played with all the webview settings too.
>
> Please put me out of my misery, what's happening here?
>
> --
> 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



-- 
Mark Murphy (a Commons Guy)
http://commonsware.com | http://github.com/commonsguy
http://commonsware.com/blog | http://twitter.com/commonsguy

Warescription: Three Android Books, Plus Updates, One Low Price!

-- 
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

Reply via email to