Yes.  thank you.

For others, here is the code that I am currently using that appears to
work.

        WebView web = (WebView) findViewById(R.id.ad_webview);

            web.getSettings().setJavaScriptEnabled(true);
            web.getSettings().setJavaScriptCanOpenWindowsAutomatically
(false);
            web.getSettings().setPluginsEnabled(false);
            web.getSettings().setSupportMultipleWindows(false);
            web.getSettings().setSupportZoom(false);
            web.setVerticalScrollBarEnabled(false);
            web.setHorizontalScrollBarEnabled(false);

            web.loadData(adItem.AdMediaUrl, "text/html", "utf-8");

            web.setWebViewClient(new WebViewClient() {
                @Override public boolean shouldOverrideUrlLoading
(WebView view, String url) {

                    return true;
                }
            });




On Feb 2, 1:28 pm, Mark Murphy <mmur...@commonsware.com> wrote:
> Mark Nuetzmann wrote:
> > I want to extend the WebView so that I can override the action of
> > clicking on a link in the webview.
>
> You want to set a WebViewClient on the WebView, where in the
> WebViewClient you put your logic in shouldOverrideUrlLoading().
>
> --
> Mark Murphy (a Commons Guy)http://commonsware.com
> Android Training in Sweden --http://www.sotrium.com/training.php
--~--~---------~--~----~------------~-------~--~----~
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