Account Options

  1. Sign in
The old Google Groups will be going away soon.
Switch to the new Google Groups.
Google Groups Home
« Groups Home
Bug BrowserCallback.overrideUrlLoa ding not called by WebView (m3-rc37a)
There are currently too many topics in this group that display first. To make this topic appear first, remove this option from another topic.
There was an error processing your request. Please try again.
flag
  2 messages - Collapse all  -  Translate all to Translated (View all originals)
The group you are posting to is a Usenet group. Messages posted to this group will make your email address visible to anyone on the Internet.
Your reply message has not been sent.
Your post was successful
 
From:
To:
Cc:
Followup To:
Add Cc | Add Followup-to | Edit Subject
Subject:
Validation:
For verification purposes please type the characters you see in the picture below or the numbers you hear by clicking the accessibility icon. Listen and type the numbers you hear
 
tomgibara  
View profile  
 More options Jan 14 2008, 5:41 pm
From: tomgibara <tomgib...@hotmail.com>
Date: Mon, 14 Jan 2008 14:41:40 -0800 (PST)
Local: Mon, Jan 14 2008 5:41 pm
Subject: Bug BrowserCallback.overrideUrlLoading not called by WebView (m3-rc37a)
The method BrowserCallback.overrideUrlLoading(String url) is not
called on a BrowserCallback implementation (certainly not one that
extends BrowserCallbackAdapter) after an adapter has been set on a
WebView; other methods do appear to be called. Here's a simple test
case:

public class BrowsingActivity extends Activity {

    public void onCreate(Bundle icicle) {
        super.onCreate(icicle);
        WebView webView = new WebView(this);
        webView.setBrowserCallback(new Handler());
        webView.loadUrl("http://www.google.com");
        setContentView(webView);
    }

    private static class Handler extends BrowserCallbackAdapter {

        public boolean overrideUrlLoading(String url) {
                Log.i("test", "overrideUrlLoading() called");
                return false;
        }

    }

}

The test log entry "overrideUrlLoading() called" is never written and
the browser behaviour remains unmodified (tested on: m3-rc37a).

PS. This method (apart from being non-functional) is confusingly
named: it returns true to _not_ override the URL loading.


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Wink Saville  
View profile  
 More options Jan 14 2008, 6:04 pm
From: Wink Saville <w...@saville.com>
Date: Mon, 14 Jan 2008 15:04:48 -0800
Local: Mon, Jan 14 2008 6:04 pm
Subject: Re: [android-developers] Bug BrowserCallback.overrideUrlLoading not called by WebView (m3-rc37a)
Post to android-bugs@googlegroups.com


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
End of messages
« Back to Discussions « Newer topic     Older topic »