I want to get the url of the webview. However, the method calls before the page is done loading so it always returns with null. Any way around this? Thanks.
WebView webView = new WebView(this);
setContentView(webView);
webView.loadUrl(myURL);
//page is not done loading yet
String url = webView.getUrl(); //returns null