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

java - How to pass parameters between Request-Scoped Controllers? -

string - what is the difference between "some" == "some\0" and strcmp("some","some\0") in c++? -

actionscript 3 - Flex: moving a point with rotation doesnt change the point XY? -