android - How I get URL from webview on click -



android - How I get URL from webview on click -

how can "clicked url" webview on click event??

@override public void onclick(view v) {

if( v.getid() == r.id.webview) { //here want clicked url } }

thanks in advance.

webview.setwebviewclient(new webviewclient() { public boolean shouldoverrideurlloading(webview view, string url){ webview.loadurl(url); // here string url hold 'clicked url' homecoming false; } });

android

Comments

Popular posts from this blog

iphone - Dismissing a UIAlertView -

c# - Can ProtoBuf-Net deserialize to a flat class? -

javascript - Change element in each JQuery tab to dynamically generated colors -