Use loadDateWithBaseURL - pass it a dummy base URL.

On Dec 19, 7:43 am, "Inderjeet Singh" <inder...@gmail.com> wrote:
> The following code snippet produces a weird browser error (Web page not
> available) on WebView:
>
>     String message = "<html><body>Show Percent: 38% </body></html>";
>     WebView mWebView = (WebView) activity.findViewById(R.id.my_web_view);
>     mWebView.loadData(message, "text/html", "en_US");
>
> The offending character is "%".  I tried using the entity code for %, but it
> made no difference. Anyone knows what is going on?
> Thanks
> Inder
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers-unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to