I have a Subview that load a Webview, i want to get the url of the webView when my webView load a site,can you tell me how to get the url of the webView. thank you.
Assuming webView is the name of your WebView, you could use:
webView
WebView
String webUrl = webView.getUrl();
See Here: http://developer.android.com/reference/android/webkit/WebView.html#getUrl()
2.1m questions
2.1m answers
60 comments
57.0k users